for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ThemeBundle\Filesystem;
use Symfony\Component\Filesystem\Filesystem as BaseFilesystem;
/**
* @author Kamil Kokot <[email protected]>
class Filesystem extends BaseFilesystem implements FilesystemInterface
{
* {@inheritdoc}
public function getFileInfo($file)
return new \SplFileInfo($file);
}
public function getFileObject($file)
return new \SplFileObject($file);
public function getFileContents($file)
$openedFile = $this->getFileObject($file);
return $openedFile->fread($openedFile->getSize());