コード例 #1
0
ファイル: BundleTest.php プロジェクト: negativespace/phrozn
 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();
 }