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
e136cd76
Unverified
Commit
e136cd76
authored
Nov 11, 2017
by
Nicolas Widart
Committed by
GitHub
Nov 11, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #433 from joshbrw/bugfix/set-env-installer
Define the warning callback on the SetAppKey
parents
51c73b9b
973fd138
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
SetAppKey.php
Modules/Core/Console/Installers/Scripts/SetAppKey.php
+24
-0
No files found.
Modules/Core/Console/Installers/Scripts/SetAppKey.php
View file @
e136cd76
...
...
@@ -4,12 +4,24 @@ namespace Modules\Core\Console\Installers\Scripts;
use
Illuminate\Console\Command
;
use
Illuminate\Console\ConfirmableTrait
;
use
Illuminate\Contracts\Foundation\Application
;
use
Illuminate\Encryption\Encrypter
;
use
Modules\Core\Console\Installers\SetupScript
;
class
SetAppKey
implements
SetupScript
{
use
ConfirmableTrait
;
/**
* @var Application
*/
private
$application
;
public
function
__construct
(
Application
$application
)
{
$this
->
application
=
$application
;
}
/**
* Fire the install script
* @param Command $command
...
...
@@ -90,4 +102,16 @@ class SetAppKey implements SetupScript
return
"/^APP_KEY
{
$escaped
}
/m"
;
}
/**
* Get the default confirmation callback.
*
* @return \Closure
*/
protected
function
getDefaultConfirmCallback
()
:
callable
{
return
function
()
{
return
$this
->
application
->
environment
()
===
'production'
;
};
}
}
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