Skip to content

Commit

Permalink
Merge pull request #127 from cogentParadigm/master
Browse files Browse the repository at this point in the history
removed dependency on symfony/filesystem
  • Loading branch information
nettles-jarrod committed Sep 8, 2015
2 parents 69fe4db + 1ff5d50 commit 01f6aa6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
8 changes: 1 addition & 7 deletions src/PHPThumb/PHPThumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ abstract class PHPThumb
*/
protected $fileName;

/**
* @var \Symfony\Component\Filesystem\Filesystem
*/
protected $filesystem;

/**
* What the file format is (mime-type)
*
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -89,7 +83,7 @@ protected function validateRequestedResource($filename)
return true;
}

if($this->filesystem->exists($filename)) {
if(file_exists($filename)) {
return true;
}

Expand Down

0 comments on commit 01f6aa6

Please sign in to comment.