Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Docker for Drupal
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
plugin
Docker for Drupal
Commits
9932ed1c
Commit
9932ed1c
authored
2 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Do no longer update configuration after composer update, because that may use outdated plugin code
parent
f5135330
No related branches found
No related tags found
1 merge request
!63
Merging develop into main
Pipeline
#784413
passed
2 years ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Handler.php
+13
-0
13 additions, 0 deletions
src/Handler.php
src/Plugin.php
+15
-1
15 additions, 1 deletion
src/Plugin.php
with
28 additions
and
1 deletion
src/Handler.php
+
13
−
0
View file @
9932ed1c
...
...
@@ -265,6 +265,19 @@ class Handler extends BaseHandler {
}
}
/**
* Update Drupal Project for Docker.
*/
public
function
updateProject
():
void
{
// We only do the fancy stuff for developers.
if
(
!
$this
->
isDevMode
())
{
return
;
}
$this
->
io
->
info
(
'You may have to update your Docker4Drupal environment by running "composer lakedrops:docker4drupal".'
);
}
/**
* Configure Drupal Project for Docker.
*/
...
...
This diff is collapsed.
Click to expand it.
src/Plugin.php
+
15
−
1
View file @
9932ed1c
...
...
@@ -34,7 +34,7 @@ class Plugin extends BasePlugin {
return
[
ScriptEvents
::
POST_CREATE_PROJECT_CMD
=>
'configureProject'
,
ScriptEvents
::
POST_INSTALL_CMD
=>
'configureProject'
,
ScriptEvents
::
POST_UPDATE_CMD
=>
'
configur
eProject'
,
ScriptEvents
::
POST_UPDATE_CMD
=>
'
updat
eProject'
,
];
}
...
...
@@ -52,4 +52,18 @@ class Plugin extends BasePlugin {
->
configureProject
();
}
/**
* Update project event callback.
*
* @param \Composer\Script\Event $event
* The event that triggered the call of this function.
*/
public
function
updateProject
(
Event
$event
):
void
{
/** @var Handler $handler */
$handler
=
$this
->
handler
;
$handler
->
setEvent
(
$event
)
->
updateProject
();
}
}
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