Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Behat 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
Behat for Drupal
Commits
f4140703
Commit
f4140703
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Bring back missing method
parent
8fbdbc28
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Handler.php
+13
-0
13 additions, 0 deletions
src/Handler.php
with
13 additions
and
0 deletions
src/Handler.php
+
13
−
0
View file @
f4140703
...
...
@@ -43,6 +43,19 @@ class Handler {
$this
->
io
=
$io
;
}
/**
* Retrieve a package from the current composer process.
*
* @param string $name
* Name of the package to get from the current composer installation.
*
* @return \Composer\Package\PackageInterface
* The package.
*/
protected
function
getPackage
(
$name
)
{
return
$this
->
composer
->
getRepositoryManager
()
->
getLocalRepository
()
->
findPackage
(
$name
,
'*'
);
}
/**
* Post project create event to execute the scaffolding.
*
...
...
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