Skip to content

Commit 0e29ced

Browse files
authored
Merge pull request #635 from cakephp/saeideng-patch-1
use new style of loading a plugin
2 parents 43c7c3c + 29294ce commit 0e29ced

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ php composer.phar require --dev cakephp/debug_kit "~3.0"
3636

3737
* [Load the plugin](http://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin)
3838
```php
39+
// src/Application.php
40+
$this->addPlugin('DebugKit');
41+
```
42+
Prior to 3.6.0
43+
```php
3944
Plugin::load('DebugKit', ['bootstrap' => true, 'routes' => true]);
4045
```
4146
* Set `'debug' => true,` in `config/app.php`.

0 commit comments

Comments
 (0)