Skip to content
Snippets Groups Projects
Commit 6508ad8e authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/l3d#58 Move project settings out of composer.json

parent c86f6ecb
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ abstract class BaseHandler implements BaseHandlerInterface {
*
* @var \LakeDrops\Component\Composer\Config
*/
protected $config;
public $config;
/**
* @var \Symfony\Component\Console\Input\InputInterface
......@@ -71,9 +71,17 @@ abstract class BaseHandler implements BaseHandlerInterface {
public function __construct(Composer $composer, IOInterface $io) {
$this->composer = $composer;
$this->io = $io;
$this->env = new Dotenv('docker4drupal', $this->io);
$this->config = new Config($this->configId(), $this->configDefault(), $this->env);
$this->postInit();
}
/**
* Initialize configuration.
*/
protected function init(): void {
if ($this->config === NULL) {
$this->env = new Dotenv($this->configId(), $this->io);
$this->config = new Config($this->configId(), $this->configDefault(), $this->env);
$this->postInit();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment