Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
R
restable
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
terranet
restable
Commits
e613fed9
Commit
e613fed9
authored
Jun 28, 2017
by
endi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use singleton method instead of old share
parent
b0dbffe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
RestableServiceProvider.php
src/RestableServiceProvider.php
+1
-2
No files found.
src/RestableServiceProvider.php
View file @
e613fed9
...
...
@@ -39,8 +39,7 @@ class RestableServiceProvider extends ServiceProvider
// Merge config to allow user overwrite.
$this
->
mergeConfigFrom
(
$configPath
,
'restable'
);
$this
->
app
[
'restable'
]
=
$this
->
app
->
share
(
function
(
$app
)
{
$this
->
app
->
singleton
(
'restable'
,
function
(
$app
)
{
$response
=
new
ResponseFactory
(
$app
[
'view'
],
$app
[
'redirect'
]);
$converter
=
new
Format
;
...
...
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