Skip to content

Commit a3a6d2a

Browse files
authored
{readme.md} - use new style of loading a plugin
1 parent af06409 commit a3a6d2a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,15 @@ php composer.phar require cakephp/authentication
2727
```
2828

2929
Load the plugin by adding the following statement in your project's
30-
`config/bootstrap.php`:
31-
30+
`src/Application.php`:
31+
```php
32+
public function bootstrap()
33+
{
34+
parent::bootstrap();
35+
$this->addPlugin('Authentication');
36+
}
37+
```
38+
Prior to 3.6.0
3239
```php
3340
Plugin::load('Authentication');
3441
```

0 commit comments

Comments
 (0)