PluginsProcessor.php 517 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @package Grav.Common.Processors
  4. *
  5. * @copyright Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Processors;
  9. class PluginsProcessor extends ProcessorBase implements ProcessorInterface
  10. {
  11. public $id = 'plugins';
  12. public $title = 'Plugins';
  13. public function process()
  14. {
  15. $this->container['plugins']->init();
  16. $this->container->fireEvent('onPluginsInitialized');
  17. }
  18. }