Skip to content

Commit 1d4f1e2

Browse files
authored
Update package serviceprovider to support laravel 5.2
1 parent 46a2567 commit 1d4f1e2

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<?php
22

3-
/**
4-
* This file is part of the laravel url package.
5-
*
6-
* For the full copyright and license information,
7-
* please view the LICENSE file that was distributed with this source code.
8-
*/
9-
10-
113
namespace Benrowe\Laravel\Url;
124

135
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
@@ -18,9 +10,6 @@
1810
* Registers the service provider into the application IOC
1911
*
2012
* @package Benrowe\Laravel\Url
21-
* @author Ben Rowe <[email protected]>
22-
* @copyright Ben Rowe <[email protected]>
23-
* @link https://github.com/benrowe/laravel-filesystem-url
2413
*/
2514
class ServiceProvider extends LaravelServiceProvider
2615
{
@@ -44,7 +33,7 @@ function ($expression) {
4433

4534
public function register()
4635
{
47-
$this->app->bindShared('filesystem-url', function ($app) {
36+
$this->app->singleton('filesystem-url', function ($app) {
4837
return new UrlService(config('filesystems'), $app['request']->secure());
4938
});
5039
$this->app->alias('filesystem-url', 'Benrowe\Laravel\Url\UrlService');

0 commit comments

Comments
 (0)