Ejemplo n.º 1
0
 /**
  * @throws \LogicException
  */
 public function init()
 {
     if ($this->isIntialized) {
         throw new \LogicException("Bootstrap already initialized");
     }
     $this->getAutoloader();
     Config::setInstance($this->getConfig());
 }
 /**
  * @return Config
  * @throws \Exception
  */
 public static function initUnitConfig()
 {
     $config = Config::instance();
     $config->testRunId = md5((isset($_SERVER['LOGNAME']) ? $_SERVER['LOGNAME'] : uniqid(true)) . microtime(true));
     $config->testImagePath = __DIR__ . '/../misc/image.png';
     $config->testZippedImagesPath = __DIR__ . '/../misc/images.zip';
     $config->testVideoPath = __DIR__ . '/../misc/video.mp4';
     return $config;
 }
 /**
  * @return Config
  */
 public function getConfig()
 {
     return Config::instance();
 }