/** * Creates the configuration. * * @param Config $baseConfig The base configuration to use for unset values. */ public function __construct(Config $baseConfig = null) { parent::__construct($baseConfig); if (false !== ($puliDir = getenv('PULI_DIR'))) { $this->set(Config::PULI_DIR, $puliDir); } }
/** * Creates the default configuration. */ public function __construct() { parent::__construct(null, array(self::PULI_DIR => '.puli', self::FACTORY_AUTO_GENERATE => true, self::FACTORY_OUT_CLASS => 'Puli\\GeneratedPuliFactory', self::FACTORY_OUT_FILE => '{$puli-dir}/GeneratedPuliFactory.php', self::FACTORY_IN_CLASS => '{$factory.out.class}', self::FACTORY_IN_FILE => '{$factory.out.file}', self::REPOSITORY_TYPE => 'json', self::REPOSITORY_PATH => '{$puli-dir}/path-mappings.json', self::REPOSITORY_SYMLINK => true, self::REPOSITORY_OPTIMIZE => false, self::REPOSITORY_STORE_CACHE => true, self::CHANGE_STREAM_TYPE => 'json', self::CHANGE_STREAM_PATH => '{$puli-dir}/change-stream.json', self::CHANGE_STREAM_STORE_CACHE => true, self::DISCOVERY_TYPE => 'json', self::DISCOVERY_PATH => '{$puli-dir}/bindings.json', self::DISCOVERY_STORE_CACHE => true)); }
/** * Creates the default configuration. */ public function __construct() { parent::__construct(null, array(self::PULI_DIR => '.puli', self::FACTORY_AUTO_GENERATE => true, self::FACTORY_OUT_CLASS => 'Puli\\GeneratedPuliFactory', self::FACTORY_OUT_FILE => '{$puli-dir}/GeneratedPuliFactory.php', self::FACTORY_IN_CLASS => '{$factory.out.class}', self::FACTORY_IN_FILE => '{$factory.out.file}', self::REPOSITORY_TYPE => 'filesystem', self::REPOSITORY_PATH => '{$puli-dir}/repository', self::REPOSITORY_SYMLINK => true, self::DISCOVERY_TYPE => 'key-value-store', self::DISCOVERY_STORE_TYPE => 'json-file', self::DISCOVERY_STORE_PATH => '{$puli-dir}/bindings.json', self::DISCOVERY_STORE_CACHE => true)); }