Skip to content

Commit

Permalink
Environment => Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Younès El Biache committed Jul 11, 2014
1 parent f342ce3 commit 5f5f1d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace Crhayes\BladePartials;

class Environment extends \Illuminate\View\Factory {
class Factory extends \Illuminate\View\Factory {

/**
* Storage for our blocks.
Expand Down
6 changes: 3 additions & 3 deletions src/Crhayes/BladePartials/ViewServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function register()
*
* @return void
*/
public function registerEnvironment()
public function registerFactory()
{
$this->app->bindShared('view', function($app)
{
Expand All @@ -37,7 +37,7 @@ public function registerEnvironment()

$finder = $app['view.finder'];

$env = new Environment($resolver, $finder, $app['events']);
$env = new Factory($resolver, $finder, $app['events']);

// We will also set the container instance on this view environment since the
// view composers may be classes registered in the container, which allows
Expand Down Expand Up @@ -101,4 +101,4 @@ protected function registerBladeExtensions()
});
}

}
}

0 comments on commit 5f5f1d9

Please sign in to comment.