getBundleDirs() public method

Gets the directories where bundles can be stored.
public getBundleDirs ( ) : array
return array An array of directories where bundles can be stored
Esempio n. 1
0
 /**
  * Constructor.
  *
  * @param Kernel          $kernel A Kernel instance
  * @param LoggerInterface $logger A LoggerInterface instance
  */
 public function __construct(Kernel $kernel, LoggerInterface $logger = null)
 {
     $this->kernel = $kernel;
     $this->logger = $logger;
     $this->namespaces = array_keys($kernel->getBundleDirs());
 }