src/ApiBundle/ApiBundle.php line 8

Open in your IDE?
  1. <?php
  2. namespace ApiBundle;
  3. use ApiBundle\Api\Util\AssetHelper;
  4. use Symfony\Component\HttpKernel\Bundle\Bundle;
  5. class ApiBundle extends Bundle
  6. {
  7.     const API_PREFIX '/api';
  8.     public function boot()
  9.     {
  10.         parent::boot();
  11.         $this->initEnv();
  12.     }
  13.     private function initEnv()
  14.     {
  15.         AssetHelper::setContainer($this->container);
  16.     }
  17. }