Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/flow-flo.../libs/cakephp/core
File: PluginInterface.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
[2] Fix | Delete
* Copyright 2005-2011, Cake Software Foundation, Inc. (https://cakefoundation.org)
[3] Fix | Delete
* Licensed under The MIT License
[4] Fix | Delete
* Redistributions of files must retain the above copyright notice.
[5] Fix | Delete
*
[6] Fix | Delete
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
[7] Fix | Delete
* @link https://cakephp.org CakePHP(tm) Project
[8] Fix | Delete
* @since 3.6.0
[9] Fix | Delete
* @license https://opensource.org/licenses/mit-license.php MIT License
[10] Fix | Delete
*/
[11] Fix | Delete
namespace Cake\Core;
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Plugin Interface
[15] Fix | Delete
*/
[16] Fix | Delete
interface PluginInterface
[17] Fix | Delete
{
[18] Fix | Delete
/**
[19] Fix | Delete
* List of valid hooks.
[20] Fix | Delete
*
[21] Fix | Delete
* @var string[]
[22] Fix | Delete
*/
[23] Fix | Delete
const VALID_HOOKS = ['routes', 'bootstrap', 'console', 'middleware'];
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* Get the name of this plugin.
[27] Fix | Delete
*
[28] Fix | Delete
* @return string
[29] Fix | Delete
*/
[30] Fix | Delete
public function getName();
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* Get the filesystem path to this plugin
[34] Fix | Delete
*
[35] Fix | Delete
* @return string
[36] Fix | Delete
*/
[37] Fix | Delete
public function getPath();
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* Get the filesystem path to configuration for this plugin
[41] Fix | Delete
*
[42] Fix | Delete
* @return string
[43] Fix | Delete
*/
[44] Fix | Delete
public function getConfigPath();
[45] Fix | Delete
[46] Fix | Delete
/**
[47] Fix | Delete
* Get the filesystem path to configuration for this plugin
[48] Fix | Delete
*
[49] Fix | Delete
* @return string
[50] Fix | Delete
*/
[51] Fix | Delete
public function getClassPath();
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* Load all the application configuration and bootstrap logic.
[55] Fix | Delete
*
[56] Fix | Delete
* The default implementation of this method will include the `config/bootstrap.php` in the plugin if it exist. You
[57] Fix | Delete
* can override this method to replace that behavior.
[58] Fix | Delete
*
[59] Fix | Delete
* The host application is provided as an argument. This allows you to load additional
[60] Fix | Delete
* plugin dependencies, or attach events.
[61] Fix | Delete
*
[62] Fix | Delete
* @param \Cake\Core\PluginApplicationInterface $app The host application
[63] Fix | Delete
* @return void
[64] Fix | Delete
*/
[65] Fix | Delete
public function bootstrap(PluginApplicationInterface $app);
[66] Fix | Delete
[67] Fix | Delete
/**
[68] Fix | Delete
* Add console commands for the plugin.
[69] Fix | Delete
*
[70] Fix | Delete
* @param \Cake\Console\CommandCollection $commands The command collection to update
[71] Fix | Delete
* @return \Cake\Console\CommandCollection
[72] Fix | Delete
*/
[73] Fix | Delete
public function console($commands);
[74] Fix | Delete
[75] Fix | Delete
/**
[76] Fix | Delete
* Add middleware for the plugin.
[77] Fix | Delete
*
[78] Fix | Delete
* @param \Cake\Http\MiddlewareQueue $middleware The middleware queue to update.
[79] Fix | Delete
* @return \Cake\Http\MiddlewareQueue
[80] Fix | Delete
*/
[81] Fix | Delete
public function middleware($middleware);
[82] Fix | Delete
[83] Fix | Delete
/**
[84] Fix | Delete
* Add routes for the plugin.
[85] Fix | Delete
*
[86] Fix | Delete
* The default implementation of this method will include the `config/routes.php` in the plugin if it exists. You
[87] Fix | Delete
* can override this method to replace that behavior.
[88] Fix | Delete
*
[89] Fix | Delete
* @param \Cake\Routing\RouteBuilder $routes The route builder to update.
[90] Fix | Delete
* @return void
[91] Fix | Delete
*/
[92] Fix | Delete
public function routes($routes);
[93] Fix | Delete
[94] Fix | Delete
/**
[95] Fix | Delete
* Disables the named hook
[96] Fix | Delete
*
[97] Fix | Delete
* @param string $hook The hook to disable
[98] Fix | Delete
* @return $this
[99] Fix | Delete
*/
[100] Fix | Delete
public function disable($hook);
[101] Fix | Delete
[102] Fix | Delete
/**
[103] Fix | Delete
* Enables the named hook
[104] Fix | Delete
*
[105] Fix | Delete
* @param string $hook The hook to disable
[106] Fix | Delete
* @return $this
[107] Fix | Delete
*/
[108] Fix | Delete
public function enable($hook);
[109] Fix | Delete
[110] Fix | Delete
/**
[111] Fix | Delete
* Check if the named hook is enabled
[112] Fix | Delete
*
[113] Fix | Delete
* @param string $hook The hook to check
[114] Fix | Delete
* @return bool
[115] Fix | Delete
*/
[116] Fix | Delete
public function isEnabled($hook);
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function