Example #1
0
 /**
  * Returns the configuration file manager.
  *
  * @return ConfigFileManager The configuration file manager.
  */
 public function getConfigFileManager()
 {
     if (!$this->started) {
         throw new LogicException('Puli was not started');
     }
     if (!$this->configFileManager && $this->context->getHomeDirectory()) {
         $this->configFileManager = new ConfigFileManagerImpl($this->context, $this->getConfigFileStorage(), $this->getFactoryManager());
     }
     return $this->configFileManager;
 }
Example #2
0
 public function testCreateCanonicalizesHomeDirectory()
 {
     $config = new Config();
     $context = new Context(__DIR__ . '/../Context', $config);
     $this->assertSame(__DIR__, $context->getHomeDirectory());
 }