Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
composer_deploy
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
composer_deploy
Commits
171ba4e6
Commit
171ba4e6
authored
8 months ago
by
Florian Weber
Browse files
Options
Downloads
Patches
Plain Diff
Add use statement
parent
ca91cc97
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!8
Bump minimum version required of core to D9 + `webflo/drupal-finder` to 1.3 +...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
composer_deploy.module
+2
-1
2 additions, 1 deletion
composer_deploy.module
with
2 additions
and
1 deletion
composer_deploy.module
+
2
−
1
View file @
171ba4e6
...
@@ -4,6 +4,7 @@ use Drupal\composer_deploy\ComposerDeployHandler;
...
@@ -4,6 +4,7 @@ use Drupal\composer_deploy\ComposerDeployHandler;
use
Drupal\Core\Extension\Extension
;
use
Drupal\Core\Extension\Extension
;
use
Drupal\Core\Url
;
use
Drupal\Core\Url
;
use
DrupalFinder\DrupalFinder
;
use
DrupalFinder\DrupalFinder
;
use
DrupalFinder\DrupalFinderComposerRuntime
;
/**
/**
* @param array $info
* @param array $info
...
@@ -14,7 +15,7 @@ function composer_deploy_system_info_alter(array &$info, Extension $file, $type)
...
@@ -14,7 +15,7 @@ function composer_deploy_system_info_alter(array &$info, Extension $file, $type)
$handler
=
&
drupal_static
(
__FUNCTION__
);
$handler
=
&
drupal_static
(
__FUNCTION__
);
if
(
!
isset
(
$handler
))
{
if
(
!
isset
(
$handler
))
{
$drupalFinder
=
new
\DrupalFinder\
DrupalFinderComposerRuntime
();
$drupalFinder
=
new
DrupalFinderComposerRuntime
();
if
(
$drupalFinder
->
getDrupalRoot
())
{
if
(
$drupalFinder
->
getDrupalRoot
())
{
$handler
=
new
ComposerDeployHandler
(
$drupalFinder
);
$handler
=
new
ComposerDeployHandler
(
$drupalFinder
);
$prefixes
=
\Drupal
::
config
(
'composer_deploy.settings'
)
->
get
(
'prefixes'
);
$prefixes
=
\Drupal
::
config
(
'composer_deploy.settings'
)
->
get
(
'prefixes'
);
...
...
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