PhileCMS /
Phile
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Plugin class |
||
| 4 | */ |
||
| 5 | namespace Phile\Plugin\Phile\SimpleFileDataPersistence; |
||
| 6 | |||
| 7 | use Phile\Core\ServiceLocator; |
||
| 8 | use Phile\Plugin\AbstractPlugin; |
||
| 9 | use Phile\Plugin\Phile\SimpleFileDataPersistence\Persistence\SimpleFileDataPersistence; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Class Plugin |
||
| 13 | * Default Phile data persistence engine |
||
| 14 | * |
||
| 15 | * @author PhileCMS |
||
| 16 | * @link https://philecms.github.io |
||
| 17 | * @license http://opensource.org/licenses/MIT |
||
| 18 | * @package Phile\Plugin\Phile\SimpleFileDataPersistence |
||
| 19 | */ |
||
| 20 | class Plugin extends AbstractPlugin |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * {@inheritDoc} |
||
| 24 | */ |
||
| 25 | protected $events = ['plugins_loaded' => 'onPluginsLoaded']; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * onPluginsLoaded method |
||
| 29 | * |
||
| 30 | * @param array $data |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | 34 | public function onPluginsLoaded($data) |
|
|
0 ignored issues
–
show
|
|||
| 34 | { |
||
| 35 | 34 | ServiceLocator::registerService( |
|
| 36 | 'Phile_Data_Persistence', |
||
| 37 | 34 | new SimpleFileDataPersistence($this->settings['storage_dir']) |
|
| 38 | ); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.