Skip to content

Commit

Permalink
Merge pull request #5 from younes0/master
Browse files Browse the repository at this point in the history
Environment => Factory for Laravel 4.2 compatibility
  • Loading branch information
Chris Hayes committed Jul 11, 2014
2 parents f342ce3 + 5f5f1d9 commit 92d2cca
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 92d2cca

Please sign in to comment.