vendor/php-flasher/flasher-symfony/Support/Bundle.php line 13

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the PHPFlasher package.
  4.  * (c) Younes KHOUBZA <younes.khoubza@gmail.com>
  5.  */
  6. namespace Flasher\Symfony\Support;
  7. use Flasher\Prime\Plugin\PluginInterface;
  8. use Flasher\Symfony\Bridge\FlasherBundle;
  9. abstract class Bundle extends FlasherBundle
  10. {
  11.     /**
  12.      * @return PluginInterface
  13.      */
  14.     abstract public function createPlugin();
  15.     protected function getFlasherContainerExtension()
  16.     {
  17.         return new Extension($this->createPlugin());
  18.     }
  19.     public function getConfigurationFile()
  20.     {
  21.         return rtrim($this->getResourcesDir(), '/').'/config/config.yaml';
  22.     }
  23.     /**
  24.      * @return string
  25.      */
  26.     protected function getResourcesDir()
  27.     {
  28.         $r = new \ReflectionClass($this);
  29.         return pathinfo($r->getFileName() ?: ''PATHINFO_DIRNAME).'/Resources/';
  30.     }
  31. }