This commit is contained in:
Romain Neutron
2013-06-28 22:31:33 +02:00
parent d533b423fc
commit 0800d9bb96
8 changed files with 13 additions and 22 deletions

View File

@@ -13,12 +13,6 @@ namespace Alchemy\Phrasea\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Alchemy\Phrasea\Setup\Requirements\BinariesRequirements;
use Alchemy\Phrasea\Setup\Requirements\FilesystemRequirements;
use Alchemy\Phrasea\Setup\Requirements\LocalesRequirements;
use Alchemy\Phrasea\Setup\Requirements\PhraseaRequirements;
use Alchemy\Phrasea\Setup\Requirements\PhpRequirements;
use Alchemy\Phrasea\Setup\Requirements\SystemRequirements;
use Alchemy\Phrasea\Command\Setup\CheckEnvironment;
class CheckConfig extends CheckEnvironment

View File

@@ -20,7 +20,6 @@ use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
use Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
class ApiExceptionHandlerSubscriber implements EventSubscriberInterface

View File

@@ -59,7 +59,7 @@ class PluginServiceProvider implements ServiceProviderInterface
$app['plugins.composer-installer'] = $app->share(function (Application $app) {
$binaries = $app['phraseanet.configuration']['binaries'];
$phpBinary = isset($binaries['php_binary']) ? $binaries['php_binary'] : null;
if (!is_executable($phpBinary)) {
$finder = new ExecutableFinder();
$phpBinary = $finder->find('php');

View File

@@ -21,21 +21,21 @@ interface DeliverDataInterface
/**
* Returns a HTTP Response ready to deliver a binary file
*
* @param string $file
* @param string $filename
* @param string $disposition
* @param string $file
* @param string $filename
* @param string $disposition
* @param string|null $mimetype
* @param integer $cacheDuration
* @param integer $cacheDuration
*/
public function deliverFile($file, $filename = null, $disposition = self::DISPOSITION_INLINE, $mimeType = null, $cacheDuration = 3600);
/**
* Return a HTTP Response ready to deliver data
*
* @param string $data
* @param string $filename
* @param string $mimeType
* @param string $disposition
* @param string $data
* @param string $filename
* @param string $mimeType
* @param string $disposition
* @param integer $cacheDuration
*/
public function deliverData($data, $filename, $mimeType, $disposition = self::DISPOSITION_INLINE, $cacheDuration = 3600);

View File

@@ -32,7 +32,7 @@ class ServeFileResponseFactory implements DeliverDataInterface
}
/**
* @param Application $app
* @param Application $app
* @return self
*/
public static function create(Application $app)

View File

@@ -32,7 +32,7 @@ class XsendfileMapping
{
$final = array();
foreach($this->mapping as $entry) {
foreach ($this->mapping as $entry) {
if (!is_dir($entry['directory']) || '' === $entry['mount-point']) {
continue;
}
@@ -60,7 +60,7 @@ class XsendfileMapping
private function validate(array $mapping)
{
foreach($mapping as $entry) {
foreach ($mapping as $entry) {
if (!is_array($entry)) {
throw new InvalidArgumentException('XSendFile mapping entry must be an array');
}

View File

@@ -11,8 +11,6 @@
use Alchemy\Phrasea\Application;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\HttpFoundation\Response;
/**
*

View File

@@ -19,7 +19,7 @@ class ApcCacheTest extends \PHPUnit_Framework_TestCase
if (!ini_get('apc.enable_cli')) {
$this->markTestSkipped('Apc is not loaded in CLI');
}
$this->object = new ApcCache;
}