original_string: public function build(AdminInterface $admin, RouteCollection $collection)
      {
          $collection->add('list');
          $collection->add('create');
          $collection->add('batch', null, [], [], [], '', [], ['POST']);
          $collection->add('edit', $admin->getRouterIdParameter().'/edit', [], ['id' => '.+']);
          $collection->add('delete', $admin->getRouterIdParameter().'/delete', [], ['id' => '.+']);
          $collection->add('export');
          $collection->add('show', $admin->getRouterIdParameter().'/show', [], ['id' => '.+'], [], '', [], ['GET']);
  
          if ($admin->isAclEnabled()) {
              $collection->add('acl', $admin->getRouterIdParameter().'/acl', [], ['id' => '.+']);
          }
  
          // add children urls
          foreach ($admin->getChildren() as $children) {
              $collection->addCollection($children->getRoutes());
          }
      }
code: public function build(AdminInterface $admin, RouteCollection $collection)
      {
          $collection->add('list');
          $collection->add('create');
          $collection->add('batch', null, [], [], [], '', [], ['POST']);
          $collection->add('edit', $admin->getRouterIdParameter().'/edit', [], ['id' => '.+']);
          $collection->add('delete', $admin->getRouterIdParameter().'/delete', [], ['id' => '.+']);
          $collection->add('export');
          $collection->add('show', $admin->getRouterIdParameter().'/show', [], ['id' => '.+'], [], '', [], ['GET']);
  
          if ($admin->isAclEnabled()) {
              $collection->add('acl', $admin->getRouterIdParameter().'/acl', [], ['id' => '.+']);
          }
  
          // add children urls
          foreach ($admin->getChildren() as $children) {
              $collection->addCollection($children->getRoutes());
          }
      }
code_tokens: public function build ( AdminInterface $ admin , RouteCollection $ collection ) { $ collection -> add ( 'list' ) ; $ collection -> add ( 'create' ) ; $ collection -> add ( 'batch' , null , [ ] , [ ] , [ ] , '' , [ ] , [ 'POST' ] ) ; $ collection -> add ( 'edit' , $ admin -> getRouterIdParameter ( ) . '/edit' , [ ] , [ 'id' => '.+' ] ) ; $ collection -> add ( 'delete' , $ admin -> getRouterIdParameter ( ) . '/delete' , [ ] , [ 'id' => '.+' ] ) ; $ collection -> add ( 'export' ) ; $ collection -> add ( 'show' , $ admin -> getRouterIdParameter ( ) . '/show' , [ ] , [ 'id' => '.+' ] , [ ] , '' , [ ] , [ 'GET' ] ) ; if ( $ admin -> isAclEnabled ( ) ) { $ collection -> add ( 'acl' , $ admin -> getRouterIdParameter ( ) . '/acl' , [ ] , [ 'id' => '.+' ] ) ; } // add children urls foreach ( $ admin -> getChildren ( ) as $ children ) { $ collection -> addCollection ( $ children -> getRoutes ( ) ) ; } }
docstring: RouteBuilder that allows slashes in the ids.
  
  {@inheritdoc}
docstring_tokens: RouteBuilder that allows slashes in the ids .