Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
composer.json Utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Composer
library
composer.json Utils
Commits
6508ad8e
Commit
6508ad8e
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
docker/l3d#58
Move project settings out of composer.json
parent
c86f6ecb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BaseHandler.php
+12
-4
12 additions, 4 deletions
BaseHandler.php
with
12 additions
and
4 deletions
BaseHandler.php
+
12
−
4
View file @
6508ad8e
...
...
@@ -34,7 +34,7 @@ abstract class BaseHandler implements BaseHandlerInterface {
*
* @var \LakeDrops\Component\Composer\Config
*/
p
rotected
$config
;
p
ublic
$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
();
}
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment