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:
parent
ac9b1fad9c
commit
dd5a47ba16
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user