1
0
mirror of https://github.com/Intervention/image.git synced 2025-02-06 22:00:38 +01:00

String class names are already pointing to root namespace

This commit is contained in:
Sági-Kazár Márk 2014-07-31 19:16:19 +02:00 committed by Oliver Vogel
parent ac9b1fad9c
commit dd5a47ba16
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class ImageManager
public function __construct(\Illuminate\Config\Repository $config = null)
{
// create configurator
if (is_a($config, '\Illuminate\Config\Repository')) {
if (is_a($config, 'Illuminate\\Config\\Repository')) {
$this->config = $config;
@ -48,7 +48,7 @@ class ImageManager
private function createDriver()
{
$drivername = ucfirst($this->config->get('image::driver'));
$driverclass = sprintf('\Intervention\Image\%s\Driver', $drivername);
$driverclass = sprintf('Intervention\\Image\\%s\\Driver', $drivername);
if (class_exists($driverclass)) {
return new $driverclass;
@ -97,7 +97,7 @@ class ImageManager
*/
public function cache(Closure $callback, $lifetime = null, $returnObj = false)
{
if (class_exists('\Intervention\Image\ImageCache')) {
if (class_exists('Intervention\\Image\\ImageCache')) {
// create imagecache
$imagecache = new ImageCache($this);

View File

@ -24,7 +24,7 @@ class ImageServiceProvider extends ServiceProvider
$this->package('intervention/image');
// try to create imagecache route only if imagecache is present
if (class_exists('Intervention\Image\ImageCache')) {
if (class_exists('Intervention\\Image\\ImageCache')) {
$app = $this->app;