Fix wrong namespace declaration

This commit is contained in:
Matias Griese
2014-09-03 15:50:17 +03:00
parent 17e218bdb3
commit 9e032a7120
3 changed files with 6 additions and 10 deletions

View File

@@ -29,19 +29,14 @@ trait CompiledFile
$modified = $this->modified();
$class = get_class($this);
if ($file->exists()) {
$cache = $file->exists() ? $file->content() : null;
} else {
$cache = null;
}
$cache = $file->exists() ? $file->content() : null;
// Load real file if cache isn't up to date (or is invalid).
if (
!is_array($cache)
!isset($cache['@class'])
|| $cache['@class'] != $class
|| $cache['modified'] != $modified
|| $cache['filename'] != $this->filename
|| $cache['@class'] != $class
) {
// Attempt to lock the file for writing.
$file->lock(false);

View File

@@ -1,8 +1,8 @@
<?php
namespace Grav\Common;
use Grav\Common\Config\ConfigServiceProvider;
use Grav\Common\Page\Pages;
use Grav\Common\Service\ConfigServiceProvider;
use Grav\Common\Service\StreamsServiceProvider;
use RocketTheme\Toolbox\DI\Container;
use RocketTheme\Toolbox\Event\EventDispatcher;

View File

@@ -1,6 +1,7 @@
<?php
namespace Grav\Common\Config;
namespace Grav\Common\Service;
use Grav\Common\Config\Config;
use Grav\Common\Grav;
use Grav\Component\Blueprints\Blueprints;
use Grav\Component\Filesystem\Folder;