Skip to content

Commit 2d46292

Browse files
author
Nikola
committed
Fix installation docs: use CakeVerificationPlugin::class
1 parent 93480dc commit 2d46292

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

docs/installation.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ composer require salines/cakephp-verification
1616

1717
## 2) Load the plugin
1818

19-
```bash
20-
bin/cake plugin load Verification
21-
```
22-
23-
This adds an entry to `config/plugins.php`. Alternatively, add it manually in
24-
`src/Application.php`:
19+
Add it manually in `src/Application.php`:
2520

2621
```php
27-
$this->addPlugin('CakeVerification');
22+
use CakeVerification\CakeVerificationPlugin;
23+
24+
// in bootstrap():
25+
$this->addPlugin(CakeVerificationPlugin::class);
2826
```
2927

3028
## 3) Publish config

0 commit comments

Comments
 (0)