This commit is contained in:
Nicolas Le Goff
2014-07-17 15:17:04 +02:00
parent fcdc10c554
commit 66fa05f4ee
92 changed files with 336 additions and 406 deletions

View File

@@ -11,7 +11,6 @@
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Model\Entities\ApiApplication;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class patch_370alpha3a extends patchAbstract
{

View File

@@ -11,7 +11,6 @@
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Model\Entities\ApiApplication;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class patch_3715alpha1a extends patchAbstract
{

View File

@@ -19,7 +19,7 @@ class patch_384alpha2a implements patchInterface
private $release = '3.8.4-alpha.2';
/** @var array */
private $concern = array(base::APPLICATION_BOX);
private $concern = [base::APPLICATION_BOX];
/**
* {@inheritdoc}

View File

@@ -17,7 +17,7 @@ class patch_384alpha3a implements patchInterface
private $release = '3.8.4-alpha.3';
/** @var array */
private $concern = array(base::APPLICATION_BOX);
private $concern = [base::APPLICATION_BOX];
/**
* {@inheritdoc}
@@ -58,16 +58,16 @@ class patch_384alpha3a implements patchInterface
{
$config = $app['phraseanet.configuration']->getConfig();
$config['api_cors'] = array(
$config['api_cors'] = [
'enabled' => false,
'allow_credentials' => false,
'allow_origin' => array(),
'allow_headers' => array(),
'allow_methods' => array(),
'expose_headers' => array(),
'allow_origin' => [],
'allow_headers' => [],
'allow_methods' => [],
'expose_headers' => [],
'max_age' => 0,
'hosts' => array(),
);
'hosts' => [],
];
$app['phraseanet.configuration']->setConfig($config);

View File

@@ -17,7 +17,7 @@ class patch_384alpha4a implements patchInterface
private $release = '3.8.4-alpha.4';
/** @var array */
private $concern = array(base::APPLICATION_BOX);
private $concern = [base::APPLICATION_BOX];
/**
* {@inheritdoc}
@@ -58,10 +58,10 @@ class patch_384alpha4a implements patchInterface
{
$config = $app['phraseanet.configuration']->getConfig();
$config['session'] = array(
$config['session'] = [
'idle' => 0,
'lifetime' => 604800,
);
];
$app['phraseanet.configuration']->setConfig($config);

View File

@@ -17,7 +17,7 @@ class patch_384alpha5a implements patchInterface
private $release = '3.8.4-alpha.5';
/** @var array */
private $concern = array(base::DATA_BOX);
private $concern = [base::DATA_BOX];
/**
* {@inheritdoc}

View File

@@ -185,7 +185,6 @@ class patch_390alpha17a extends patchAbstract
);
}
private function fillOauthTokenTable(EntityManager $em)
{
if (false === $this->tableExists($em, 'api_oauth_tokens')) {