コード例 #1
0
ファイル: Application.php プロジェクト: bvqbao/app-skeleton
 /**
  * Create a new application.
  *
  * @param string $basePath
  */
 public function __construct($basePath)
 {
     if (is_null($basePath)) {
         throw new \InvalidArgumentException("The base path has not been set.");
     }
     parent::__construct();
     // Make the container instance used by this application
     // globally available.
     Container::setInstance($this->getContainer());
     $this->setBasePath($basePath);
     $this->bootstrap();
 }