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
b6c0f229
Commit
b6c0f229
authored
Nov 27, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a --no-interaction flag for composer
parent
b33e889b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
InstallCommand.php
Modules/Core/Console/InstallCommand.php
+12
-12
No files found.
Modules/Core/Console/InstallCommand.php
View file @
b6c0f229
...
...
@@ -93,12 +93,12 @@ class InstallCommand extends Command
$this
->
runSentinelMigrations
();
$this
->
info
(
'Running Sentinel seed...'
);
$this
->
call
(
'db:seed'
,
[
'--class'
=>
'Modules\User\Database\Seeders\SentinelGroupSeedTableSeeder'
]);
$this
->
call
(
'db:seed'
,
[
'--class'
=>
'Modules\User\Database\Seeders\SentinelGroupSeedTableSeeder'
,
'--no-interaction'
]);
$this
->
replaceUserRepositoryBindings
(
'Sentinel'
);
$this
->
bindUserRepositoryOnTheFly
(
'Sentinel'
);
$this
->
call
(
'publish:config'
,
[
'package'
=>
'cartalyst/sentinel'
]);
$this
->
call
(
'publish:config'
,
[
'package'
=>
'cartalyst/sentinel'
,
'--no-interaction'
]);
$this
->
replaceCartalystUserModelConfiguration
(
'Cartalyst\Sentinel\Users\EloquentUser'
,
'Sentinel'
);
$this
->
createFirstUser
(
'sentinel'
);
...
...
@@ -112,12 +112,12 @@ class InstallCommand extends Command
private
function
runSentryUserCommands
()
{
$this
->
info
(
'Running Sentry migrations...'
);
$this
->
call
(
'migrate'
,
[
'--package'
=>
'cartalyst/sentry'
]);
$this
->
call
(
'migrate'
,
[
'--package'
=>
'cartalyst/sentry'
,
'--no-interaction'
]);
$this
->
info
(
'Running Sentry seed...'
);
$this
->
call
(
'db:seed'
,
[
'--class'
=>
'Modules\User\Database\Seeders\SentryGroupSeedTableSeeder'
]);
$this
->
call
(
'db:seed'
,
[
'--class'
=>
'Modules\User\Database\Seeders\SentryGroupSeedTableSeeder'
,
'--no-interaction'
]);
$this
->
call
(
'publish:config'
,
[
'package'
=>
'cartalyst/sentry'
]);
$this
->
call
(
'publish:config'
,
[
'package'
=>
'cartalyst/sentry'
,
'--no-interaction'
]);
$this
->
replaceCartalystUserModelConfiguration
(
'Cartalyst\Sentry\Users\Eloquent\User'
,
'Sentry'
);
$this
->
createFirstUser
(
'sentry'
);
...
...
@@ -160,7 +160,7 @@ class InstallCommand extends Command
*/
private
function
runSentinelMigrations
()
{
$this
->
call
(
'migrate'
,
[
'--package'
=>
'cartalyst/sentinel'
]);
$this
->
call
(
'migrate'
,
[
'--package'
=>
'cartalyst/sentinel'
,
'--no-interaction'
]);
}
/**
...
...
@@ -168,9 +168,9 @@ class InstallCommand extends Command
*/
private
function
runMigrations
()
{
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Setting'
]);
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Menu'
]);
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Media'
]);
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Setting'
,
'--no-interaction'
]);
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Menu'
,
'--no-interaction'
]);
$this
->
call
(
'module:migrate'
,
[
'module'
=>
'Media'
,
'--no-interaction'
]);
$this
->
info
(
'Application migrated!'
);
}
...
...
@@ -194,9 +194,9 @@ class InstallCommand extends Command
*/
private
function
publishAssets
()
{
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Core'
]);
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Media'
]);
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Menu'
]);
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Core'
,
'--no-interaction'
]);
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Media'
,
'--no-interaction'
]);
$this
->
call
(
'module:publish'
,
[
'module'
=>
'Menu'
,
'--no-interaction'
]);
}
/**
...
...
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