当前位置: 首页>>代码示例>>PHP>>正文


PHP RouteCollection::remove方法代码示例

本文整理汇总了PHP中Sonata\AdminBundle\Route\RouteCollection::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP RouteCollection::remove方法的具体用法?PHP RouteCollection::remove怎么用?PHP RouteCollection::remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Sonata\AdminBundle\Route\RouteCollection的用法示例。


在下文中一共展示了RouteCollection::remove方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     //$collection->remove('create');
     $collection->remove('delete');
     $collection->remove('export');
     $collection->remove('show');
 }
开发者ID:realburner,项目名称:Sonata-media-upload-multiple-images,代码行数:7,代码来源:FooterWidgetsAdmin.php

示例2: configureRoutes

 /**
  * {@inheritdoc}
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('create');
     $collection->remove('show');
     $collection->remove('edit');
     $collection->remove('export');
     $collection->remove('batch');
 }
开发者ID:stfalcon-studio,项目名称:lost-and-found,代码行数:11,代码来源:ItemRequestAdmin.php

示例3: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     // to remove a single route
     $collection->remove('delete');
     $collection->remove('create');
     // OR remove all route except named ones
     // $collection->clearExcept(array('list', 'show'));
 }
开发者ID:sebathomson,项目名称:machu,代码行数:8,代码来源:TourDateAdmin.php

示例4: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     if (!$this->isDevelopment()) {
         // Remove create route in production env
         $collection->remove('create');
         // Remove delete route in production env
         $collection->remove('delete');
     }
 }
开发者ID:bamper,项目名称:symfony-ecommerce,代码行数:9,代码来源:LanguageAdmin.php

示例5: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->add('delivered');
     $collection->add('open');
     $collection->add('print');
     $collection->remove('create');
 }
开发者ID:DevMaster112,项目名称:flora,代码行数:7,代码来源:DistributionAdmin.php

示例6: testCollection

 public function testCollection()
 {
     $routeCollection = new RouteCollection('base.Code.Route', 'baseRouteName', 'baseRoutePattern', 'baseControllerName');
     $routeCollection->add('view');
     $this->assertTrue($routeCollection->has('view'));
     $routeCollection->remove('view');
     $this->assertFalse($routeCollection->has('view'));
     $routeCollection->add('create');
     $route = $routeCollection->get('create');
     $this->assertInstanceOf('Symfony\\Component\\Routing\\Route', $route);
     $routeCollection->add('view');
     $routeCollection->add('edit');
     $routeCollection->clear();
     $this->assertFalse($routeCollection->has('create'));
     $this->assertFalse($routeCollection->has('view'));
     $this->assertFalse($routeCollection->has('edit'));
     $routeCollection->add('create');
     $routeCollection->add('view');
     $routeCollection->add('edit');
     $routeCollection->add('list');
     $routeCollection->clearExcept(array('create', 'edit'));
     $this->assertTrue($routeCollection->has('create'));
     $this->assertTrue($routeCollection->has('edit'));
     $this->assertFalse($routeCollection->has('view'));
     $this->assertFalse($routeCollection->has('list'));
 }
开发者ID:0mars,项目名称:SonataAdminBundle,代码行数:26,代码来源:RouteCollectionTest.php

示例7: configureRoutes

 public function configureRoutes(RouteCollection $collection)
 {
     $collection->add('ProductUpload');
     // add custom action name which you created in controller for which you want to generate route.
     $collection->remove('delete');
     //$collection->remove('list');
 }
开发者ID:manudatta12,项目名称:POC,代码行数:7,代码来源:manageFileSystemAdmin.php

示例8: configureRoutes

 public function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('edit');
     //remove all route except named ones
     //$collection->clearExcept(array('list', 'create', 'delete'));
     $collection->add('downloadFile', $this->getRouterIdParameter() . '/download');
 }
开发者ID:morustechnology,项目名称:LmcAdmissionBundle,代码行数:7,代码来源:ImportLogAdmin.php

示例9: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     // get entity manager
     $em = $this->getConfigurationPool()->getContainer()->get('Doctrine')->getManager();
     // find all periods
     $periods = $em->getRepository('TmcycyitNotificationBundle:HistoryPeriod')->findAll();
     // remove create button, if there is one periods
     if (count($periods) >= 1) {
         $collection->remove('create');
     }
 }
开发者ID:tmcycyit,项目名称:notification-bundle,代码行数:11,代码来源:HistoryPeriodAdmin.php

示例10: configureRoutes

 /**
  * @param RouteCollection $collection
  */
 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('list')->remove('delete');
 }
开发者ID:defan-marunchak,项目名称:eurotax,代码行数:7,代码来源:DevisesAdmin.php

示例11: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->add('refreshCache', 'refreshCache', ['_controller' => $collection->getBaseControllerName() . ':refreshCache']);
     $collection->remove('show');
     $collection->remove('batch');
     $collection->remove('export');
 }
开发者ID:octava,项目名称:cms,代码行数:7,代码来源:StructureAdmin.php

示例12: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     // to remove a single route
     $collection->remove('show');
 }
开发者ID:alpixel,项目名称:AlpixelSeoBundle,代码行数:5,代码来源:AdminMetaTag.php

示例13: configureRoutes

 /**
  * {@inheritdoc}
  */
 public function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('edit')->remove('create')->remove('history');
 }
开发者ID:LamaDelRay,项目名称:test_symf,代码行数:7,代码来源:MessageAdmin.php

示例14: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove('delete');
     $collection->add('block', $this->getRouterIdParameter() . '/block');
 }
开发者ID:kirians,项目名称:sf,代码行数:5,代码来源:SonataEmployerAdmin.php

示例15: configureRoutes

 protected function configureRoutes(RouteCollection $collection)
 {
     $collection->remove("create")->remove("delete");
 }
开发者ID:Kid-Binary,项目名称:KamillNurakhmetov,代码行数:4,代码来源:OrderAdmin.php


注:本文中的Sonata\AdminBundle\Route\RouteCollection::remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。