예제 #1
0
 public function testGetInfoBundleNotFound()
 {
     $this->setExpectedException('Exception', 'Bundle "wrong.bundle" not found..');
     $bundlesConfig = dirname(__FILE__) . '/../../configs/bundles.yml';
     $bundle = new Bundle('wrong.bundle', new Config($bundlesConfig));
     $bundle->getInfo();
 }
예제 #2
0
파일: Service.php 프로젝트: JamieS/phrozn
 /**
  * Get bundle info
  *
  * @param string $bundle Bundle name, URI or filename
  *
  * @throws \Exception
  * @return array
  */
 public function getBundleInfo($bundle)
 {
     $bundle = new Bundle($bundle, $this->getConfig());
     return $bundle->getInfo();
 }