From 1ff5d50535b484ed01862088cfec8234b639f9d2 Mon Sep 17 00:00:00 2001 From: Ali Gangji Date: Sat, 5 Sep 2015 18:59:39 -0700 Subject: [PATCH] removed dependency on symfony/filesystem --- composer.json | 3 +-- src/PHPThumb/PHPThumb.php | 8 +------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 780c1ff..53b4279 100644 --- a/composer.json +++ b/composer.json @@ -5,8 +5,7 @@ "description": "A library for manipulating images in PHP.", "keywords": ["image", "resize", "rotate"], "require": { - "php": ">=5.3.0", - "symfony/filesystem": "2.2.*" + "php": ">=5.3.0" }, "homepage": "https://github.com/masterexploder/PHPThumb", "authors": [ diff --git a/src/PHPThumb/PHPThumb.php b/src/PHPThumb/PHPThumb.php index 7521b9d..bfb7ee1 100644 --- a/src/PHPThumb/PHPThumb.php +++ b/src/PHPThumb/PHPThumb.php @@ -27,11 +27,6 @@ abstract class PHPThumb */ protected $fileName; - /** - * @var \Symfony\Component\Filesystem\Filesystem - */ - protected $filesystem; - /** * What the file format is (mime-type) * @@ -59,7 +54,6 @@ abstract class PHPThumb */ public function __construct($fileName, array $options = array(), array $plugins = array()) { - $this->filesystem = new \Symfony\Component\Filesystem\Filesystem(); $this->fileName = $fileName; $this->remoteImage = false; @@ -89,7 +83,7 @@ protected function validateRequestedResource($filename) return true; } - if($this->filesystem->exists($filename)) { + if(file_exists($filename)) { return true; }