當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DispatcherFactory::clear方法代碼示例

本文整理匯總了PHP中Cake\Routing\DispatcherFactory::clear方法的典型用法代碼示例。如果您正苦於以下問題:PHP DispatcherFactory::clear方法的具體用法?PHP DispatcherFactory::clear怎麽用?PHP DispatcherFactory::clear使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Cake\Routing\DispatcherFactory的用法示例。


在下文中一共展示了DispatcherFactory::clear方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     DispatcherFactory::clear();
     $this->_init();
     unset($this->RequestHandler, $this->Controller);
 }
開發者ID:Rabp9,項目名稱:test-psi2,代碼行數:12,代碼來源:RequestHandlerComponentTest.php

示例2: tearDown

 /**
  * tearDown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Plugin::unload();
     DispatcherFactory::clear();
     $this->Case->controller = null;
 }
開發者ID:maitrepylos,項目名稱:nazeweb,代碼行數:12,代碼來源:ControllerTestCaseTest.php

示例3: tearDown

 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     DispatcherFactory::clear();
     Router::reload();
     Router::$initialized = false;
     unset($this->RequestHandler, $this->Controller);
 }
開發者ID:Slayug,項目名稱:castor,代碼行數:13,代碼來源:RequestHandlerComponentTest.php

示例4: setUp

 /**
  * Setup method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('App.namespace', 'TestApp');
     Router::connect('/:controller/:action/*', [], ['routeClass' => 'InflectedRoute']);
     DispatcherFactory::clear();
     DispatcherFactory::add('Routing');
     DispatcherFactory::add('ControllerFactory');
 }
開發者ID:kfer10,項目名稱:excel,代碼行數:14,代碼來源:IntegrationTestCaseTest.php

示例5: tearDown

 /**
  * teardown
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     DispatcherFactory::clear();
     Router::reload();
 }
開發者ID:Slayug,項目名稱:castor,代碼行數:11,代碼來源:RequestActionTraitTest.php

示例6: setUp

 /**
  * setup function
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     DispatcherFactory::clear();
 }
開發者ID:Slayug,項目名稱:castor,代碼行數:10,代碼來源:DispatcherFactoryTest.php

示例7: teardownAfterClass

 /**
  * cleanup after test case.
  *
  * @return void
  */
 public static function teardownAfterClass()
 {
     DispatcherFactory::clear();
 }
開發者ID:dereuromark,項目名稱:cakephp-shim,代碼行數:9,代碼來源:SessionComponentTest.php

示例8: tearDown

 public function tearDown()
 {
     parent::tearDown();
     DispatcherFactory::clear();
 }
開發者ID:markstory,項目名稱:cakephp-spekkoek,代碼行數:5,代碼來源:ActionDispatcherTest.php


注:本文中的Cake\Routing\DispatcherFactory::clear方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。