Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
7c0751ad
Commit
7c0751ad
authored
Nov 26, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inject the new composer class
parent
2408eea6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
InstallCommand.php
Modules/Core/Console/InstallCommand.php
+8
-1
CoreServiceProvider.php
Modules/Core/Providers/CoreServiceProvider.php
+3
-1
No files found.
Modules/Core/Console/InstallCommand.php
View file @
7c0751ad
...
...
@@ -5,6 +5,7 @@ use Illuminate\Console\Command;
use
Illuminate\Contracts\Foundation\Application
;
use
Illuminate\Filesystem\Filesystem
;
use
Illuminate\Support\Facades\Hash
;
use
Modules\Core\Services\Composer
;
use
Modules\User\Repositories\UserRepository
;
class
InstallCommand
extends
Command
...
...
@@ -36,6 +37,10 @@ class InstallCommand extends Command
* @var Application
*/
private
$app
;
/**
* @var Composer
*/
private
$composer
;
/**
* Create a new command instance.
...
...
@@ -43,13 +48,15 @@ class InstallCommand extends Command
* @param UserRepository $user
* @param Filesystem $finder
* @param Application $app
* @param Composer $composer
*/
public
function
__construct
(
$user
,
Filesystem
$finder
,
Application
$app
)
public
function
__construct
(
$user
,
Filesystem
$finder
,
Application
$app
,
Composer
$composer
)
{
parent
::
__construct
();
$this
->
user
=
$user
;
$this
->
finder
=
$finder
;
$this
->
app
=
$app
;
$this
->
composer
=
$composer
;
}
/**
...
...
Modules/Core/Providers/CoreServiceProvider.php
View file @
7c0751ad
...
...
@@ -4,6 +4,7 @@ use Illuminate\Contracts\Foundation\Application;
use
Illuminate\Routing\Router
;
use
Illuminate\Support\ServiceProvider
;
use
Modules\Core\Console\InstallCommand
;
use
Modules\Core\Services\Composer
;
use
Modules\Menu\Entities\Menuitem
;
use
Modules\Menu\Repositories\Eloquent\EloquentMenuItemRepository
;
...
...
@@ -89,7 +90,8 @@ class CoreServiceProvider extends ServiceProvider
return
new
InstallCommand
(
$app
[
'Modules\User\Repositories\UserRepository'
],
$app
[
'files'
],
$app
$app
,
new
Composer
(
$app
[
'files'
])
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment