Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed dependency on symfony/filesystem #127

Merged
merged 1 commit into from
Sep 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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