mirror of
https://github.com/Intervention/image.git
synced 2025-08-11 16:34:00 +02:00
String class names are already pointing to root namespace
This commit is contained in:
committed by
Oliver Vogel
parent
ac9b1fad9c
commit
dd5a47ba16
@@ -24,7 +24,7 @@ class ImageManager
|
|||||||
public function __construct(\Illuminate\Config\Repository $config = null)
|
public function __construct(\Illuminate\Config\Repository $config = null)
|
||||||
{
|
{
|
||||||
// create configurator
|
// create configurator
|
||||||
if (is_a($config, '\Illuminate\Config\Repository')) {
|
if (is_a($config, 'Illuminate\\Config\\Repository')) {
|
||||||
|
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
|
|
||||||
@@ -48,7 +48,7 @@ class ImageManager
|
|||||||
private function createDriver()
|
private function createDriver()
|
||||||
{
|
{
|
||||||
$drivername = ucfirst($this->config->get('image::driver'));
|
$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)) {
|
if (class_exists($driverclass)) {
|
||||||
return new $driverclass;
|
return new $driverclass;
|
||||||
@@ -97,7 +97,7 @@ class ImageManager
|
|||||||
*/
|
*/
|
||||||
public function cache(Closure $callback, $lifetime = null, $returnObj = false)
|
public function cache(Closure $callback, $lifetime = null, $returnObj = false)
|
||||||
{
|
{
|
||||||
if (class_exists('\Intervention\Image\ImageCache')) {
|
if (class_exists('Intervention\\Image\\ImageCache')) {
|
||||||
// create imagecache
|
// create imagecache
|
||||||
$imagecache = new ImageCache($this);
|
$imagecache = new ImageCache($this);
|
||||||
|
|
||||||
|
@@ -24,7 +24,7 @@ class ImageServiceProvider extends ServiceProvider
|
|||||||
$this->package('intervention/image');
|
$this->package('intervention/image');
|
||||||
|
|
||||||
// try to create imagecache route only if imagecache is present
|
// 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;
|
$app = $this->app;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user