Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Commit

Permalink
Fixed invalid reference to Config facades
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 16, 2013
1 parent 39d19c2 commit ee07d6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Orchestra/Optimize/Compiler.php
@@ -1,6 +1,6 @@
<?php namespace Orchestra\Optimize;

use Illuminate\Config\FileLoader;
use Illuminate\Config\Repository;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Fluent;

Expand All @@ -9,7 +9,7 @@ class Compiler
/**
* Config instance.
*
* @var \Illuminate\Config\FileLoader
* @var \Illuminate\Config\Repository
*/
protected $config;

Expand Down Expand Up @@ -37,12 +37,12 @@ class Compiler
/**
* Construct a new instance.
*
* @param \Illuminate\Config\FileLoader $config
* @param \Illuminate\Config\Repository $config
* @param \Illuminate\Filesystem\Filesystem $files
* @param string $path
* @param array $components
*/
public function __construct(FileLoader $config, Filesystem $files, $path, array $components = array())
public function __construct(Repository $config, Filesystem $files, $path, array $components = array())
{
$this->config = $config;
$this->files = $files;
Expand Down
2 changes: 1 addition & 1 deletion tests/CompilerTest.php
Expand Up @@ -22,7 +22,7 @@ public function tearDown()
*/
public function testRunMethod()
{
$config = m::mock('\Illuminate\Config\FileLoader');
$config = m::mock('\Illuminate\Config\Repository');
$files = m::mock('\Illuminate\Filesystem\Filesystem');
$path = '/var/www/laravel/vendor';
$components = array(
Expand Down
2 changes: 1 addition & 1 deletion tests/OptimizeServiceProviderTest.php
Expand Up @@ -38,7 +38,7 @@ public function tearDown()
public function testRegisterMethod()
{
$app = $this->app;
$app['config'] = $config = m::mock('\Illuminate\Config\FileLoader');
$app['config'] = $config = m::mock('\Illuminate\Config\Repository');
$app['events'] = $events = m::mock('\Illuminate\Events\Dispatcher');
$app['files'] = $files = m::mock('\Illuminate\Filesystem\Filesystem');
$app['path.base'] = '/var/www/laravel';
Expand Down

0 comments on commit ee07d6c

Please sign in to comment.