Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow plugins to disable / enable bootstrap and routes
- Loading branch information
Showing
6 changed files
with
200 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org) | ||
* Copyright 2005-2011, Cake Software Foundation, Inc. (https://cakefoundation.org) | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) | ||
* @link https://cakephp.org CakePHP(tm) Project | ||
* @since 3.6.0 | ||
* @license https://opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
|
||
namespace Cake\Core; | ||
|
||
/** | ||
* Plugin Interface | ||
*/ | ||
interface PluginInterface | ||
{ | ||
|
||
/** | ||
* Disables route loading for the plugin | ||
* | ||
* @param bool $disabled True to disable it, false to enable it | ||
* @return $this | ||
*/ | ||
public function disableRoutes($disabled); | ||
|
||
/** | ||
* Disables bootstrapping for the plugin | ||
* | ||
* @param bool $disabled True to disable it, false to enable it | ||
* @return $this | ||
*/ | ||
public function disableBootstrap($disabled); | ||
|
||
/** | ||
* If the routes should be loaded or not for this plugin | ||
* | ||
* @return bool | ||
*/ | ||
public function isRouteLoadingEnabled(); | ||
|
||
/** | ||
* If bootstrapping should be done or not for this plugin | ||
* | ||
* @return bool | ||
*/ | ||
public function isBootstrapEnabled(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters