Skip to content

Commit 3dd76f4

Browse files
authored
Merge pull request #216 from cakephp/saeideng-patch-1
use new style of loading a plugin
2 parents 1b1d67f + a3a6d2a commit 3dd76f4

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

docs/Quick-start-and-introduction.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ Install the plugin with [composer](https://getcomposer.org/) from your CakePHP P
77
php composer.phar require cakephp/authentication
88
```
99

10-
Load the plugin by adding the following statement in your project's `config/bootstrap.php`
10+
Load the plugin by adding the following statement in your project's `src/Application.php`
11+
```php
12+
public function bootstrap()
13+
{
14+
parent::bootstrap();
15+
$this->addPlugin('Authentication');
16+
}
17+
```
18+
Prior to 3.6.0
1119
```php
1220
Plugin::load('Authentication');
1321
```

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)