Skip to content

Commit

Permalink
Merge pull request #23 from geocine/bindshared-to-singleton
Browse files Browse the repository at this point in the history
bindShared has been replaced with the singleton method
  • Loading branch information
PhiloNL committed Dec 4, 2015
2 parents b83793a + 20e6719 commit 3f0ce2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public function view()

public function registerFilesystem()
{
$this->container->bindShared('files', function(){
$this->container->singleton('files', function(){
return new Filesystem;
});
}
public function registerEvents(Dispatcher $events)
{
$this->container->bindShared('events', function() use ($events)
$this->container->singleton('events', function() use ($events)
{
return $events;
});
Expand All @@ -88,7 +88,7 @@ public function registerEngineResolver()
{
$me = $this;

$this->container->bindShared('view.engine.resolver', function($app) use ($me)
$this->container->singleton('view.engine.resolver', function($app) use ($me)
{
$resolver = new EngineResolver;

Expand Down Expand Up @@ -129,7 +129,7 @@ public function registerBladeEngine($resolver)
// The Compiler engine requires an instance of the CompilerInterface, which in
// this case will be the Blade compiler, so we'll first create the compiler
// instance to pass into the engine so it can compile the views properly.
$this->container->bindShared('blade.compiler', function($app) use ($me)
$this->container->singleton('blade.compiler', function($app) use ($me)
{
$cache = $me->cachePath;

Expand All @@ -150,7 +150,7 @@ public function registerBladeEngine($resolver)
public function registerViewFinder()
{
$me = $this;
$this->container->bindShared('view.finder', function($app) use ($me)
$this->container->singleton('view.finder', function($app) use ($me)
{
$paths = $me->viewPaths;

Expand Down

0 comments on commit 3f0ce2e

Please sign in to comment.