-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from ADmad/cake-3.5
Lower CakePHP version requirement to 3.5.
- Loading branch information
Showing
6 changed files
with
79 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<% | ||
/** | ||
* Copyright (c) Yves Piquel (http://www.havokinspiration.fr) | ||
* | ||
* Licensed under The MIT License | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Yves Piquel (http://www.havokinspiration.fr) | ||
* @link http://github.com/HavokInspiration/wrench | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
%> | ||
<?php | ||
namespace <%= $namespace %>\Maintenance\Mode; | ||
|
||
use Psr\Http\Message\ResponseInterface; | ||
use Psr\Http\Message\ServerRequestInterface; | ||
use Wrench\Mode\Mode; | ||
|
||
/** | ||
* <%= $name %> Maintenance Mode | ||
*/ | ||
class <%= $name %> extends Mode | ||
{ | ||
|
||
/** | ||
* Array containing the default config value for your maintenance mode | ||
* This value can be overridden when loading the mode | ||
* You can access a config value using $this->getConfig('configkey'); | ||
* | ||
* @see \Cake\Core\InstanceConfigTrait | ||
*/ | ||
protected $_defaultConfig = []; | ||
|
||
/** | ||
* Main method of the mode. | ||
* | ||
* If the mode is to take over the response of the current request, this | ||
* method should return a Response object. It can return null if the request | ||
* should follow the classic request cycle | ||
* | ||
* {@inheritDoc} | ||
*/ | ||
public function process(ServerRequestInterface $request, ResponseInterface $response) | ||
{ | ||
return $response; | ||
} | ||
} |
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