Skip to content

Commit e8a4d66

Browse files
authored
Added changed load method for CakePHP 3.8
1 parent 5c9f2ff commit e8a4d66

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Docs/Documentation/Installation.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,25 @@ Ensure the Users Plugin is loaded in your config/bootstrap.php file
5555
Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);
5656
```
5757

58+
In CakePHP 3.8 , this method is deprecated, load the plugin in /src/Application.php :
59+
60+
```
61+
// In src/Application.php. Requires at least 3.6.0
62+
use Cake\Http\BaseApplication;
63+
use ContactManager\Plugin as ContactManagerPlugin;
64+
65+
class Application extends BaseApplication {
66+
public function bootstrap()
67+
{
68+
parent::bootstrap();
69+
70+
// Load a plugin with a vendor namespace by 'short name'
71+
$this->addPlugin('CakeDC/Users');
72+
}
73+
}
74+
```
75+
76+
5877
Creating Required Tables
5978
------------------------
6079
If you want to use the Users tables to store your users and social accounts:

0 commit comments

Comments
 (0)