mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Merge branch 'Doctrine2.2' into Dev
This commit is contained in:
@@ -25,7 +25,6 @@ use Symfony\Component\Console\Application;
|
||||
use Alchemy\Phrasea;
|
||||
|
||||
$Core = require_once dirname(__FILE__) . '/../lib/bootstrap.php';
|
||||
bootstrap::register_autoloads();
|
||||
|
||||
try
|
||||
{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
# temp pour lint
|
||||
dir.src=/tmp/jenkinsWorking-dev
|
||||
dir.src=/tmp/jenkinsWorking-doctrine
|
||||
|
||||
# test.ci
|
||||
dir.dest=/home/sites_web/test-dev.ci.alchemyasp.com/pv3
|
||||
dir.dest=/home/sites_web/test-doctrine.ci.alchemyasp.com/pv3
|
||||
|
@@ -27,11 +27,6 @@ class ApcCache extends DoctrineApc implements Cache
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getStats()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function get($key)
|
||||
{
|
||||
if (!$this->contains($key))
|
||||
@@ -52,9 +47,4 @@ class ApcCache extends DoctrineApc implements Cache
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
{
|
||||
return apc_clear_cache() && apc_clear_cache('user');
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -28,12 +28,6 @@ class ArrayCache extends DoctrineArray implements Cache
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getStats()
|
||||
{
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function get($id)
|
||||
{
|
||||
if (!$this->contains($id))
|
||||
@@ -54,11 +48,4 @@ class ArrayCache extends DoctrineArray implements Cache
|
||||
return;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
{
|
||||
$this->deleteAll();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -24,10 +24,6 @@ interface Cache extends DoctrineCache
|
||||
|
||||
public function isServer();
|
||||
|
||||
public function getStats();
|
||||
|
||||
public function flush();
|
||||
|
||||
public function get($key);
|
||||
|
||||
public function deleteMulti(array $array_keys);
|
||||
|
@@ -60,7 +60,7 @@ class Manager
|
||||
{
|
||||
foreach ($this->registry as $cacheKey => $service_name)
|
||||
{
|
||||
$this->get($cacheKey, $service_name)->getDriver()->flush();
|
||||
$this->get($cacheKey, $service_name)->getDriver()->flushAll();
|
||||
}
|
||||
|
||||
return $this;
|
||||
@@ -87,8 +87,7 @@ class Manager
|
||||
|
||||
if ($this->hasChange($cacheKey, $service_name))
|
||||
{
|
||||
$driver->flush();
|
||||
|
||||
$service->getDriver()->flush();
|
||||
if ($write)
|
||||
{
|
||||
$this->registry[$cacheKey] = $service_name;
|
||||
|
@@ -27,11 +27,6 @@ class MemcacheCache extends DoctrineMemcache implements Cache
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getStats()
|
||||
{
|
||||
return $this->getMemcache()->getstats();
|
||||
}
|
||||
|
||||
public function get($key)
|
||||
{
|
||||
if (!$this->contains($key))
|
||||
@@ -52,9 +47,4 @@ class MemcacheCache extends DoctrineMemcache implements Cache
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
{
|
||||
return $this->getMemcache()->flush();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -99,11 +99,6 @@ class RedisCache extends AbstractCache implements Cache
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getStats()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function get($key)
|
||||
{
|
||||
if (!$this->contains($key))
|
||||
@@ -124,7 +119,7 @@ class RedisCache extends AbstractCache implements Cache
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
public function flushAll()
|
||||
{
|
||||
return $this->_redis->flushAll();
|
||||
}
|
||||
|
@@ -27,11 +27,6 @@ class XcacheCache extends DoctrineXcache implements Cache
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getStats()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public function get($key)
|
||||
{
|
||||
if (!$this->contains($key))
|
||||
@@ -52,9 +47,4 @@ class XcacheCache extends DoctrineXcache implements Cache
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function flush()
|
||||
{
|
||||
return xcache_clear_cache(XC_TYPE_VAR, 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -443,7 +443,6 @@ class Core extends \Pimple
|
||||
'Doctrine\\Logger' => realpath(__DIR__ . '/../../'),
|
||||
'Monolog' => realpath(__DIR__ . '/../../vendor/Silex/vendor/monolog/src'),
|
||||
'Gedmo' => realpath(__DIR__ . '/../../vendor/doctrine2-gedmo/lib'),
|
||||
'Events' => realpath(__DIR__ . '/../../Doctrine'),
|
||||
'DoctrineExtensions' => realpath(__DIR__ . "/../../vendor/doctrine2-beberlei/lib"),
|
||||
'Types' => realpath(__DIR__ . "/../../Doctrine"),
|
||||
'PhraseaFixture' => realpath(__DIR__ . "/../../conf.d"),
|
||||
|
@@ -13,7 +13,7 @@ namespace Alchemy\Phrasea\Loader;
|
||||
|
||||
require_once __DIR__ . '/LoaderStrategy.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/Cache.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/AbstractCache.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/CacheProvider.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/ApcCache.php';
|
||||
|
||||
use Alchemy\Phrasea\Loader\LoaderStrategy as CacheStrategy;
|
||||
|
@@ -13,7 +13,7 @@ namespace Alchemy\Phrasea\Loader;
|
||||
|
||||
require_once __DIR__ . '/LoaderStrategy.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/Cache.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/AbstractCache.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/CacheProvider.php';
|
||||
require_once __DIR__ . '/../../../vendor/doctrine2-orm/lib/vendor/doctrine-common/lib/Doctrine/Common/Cache/XcacheCache.php';
|
||||
|
||||
use Alchemy\Phrasea\Loader\LoaderStrategy as CacheStrategy;
|
||||
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesBasketProxy extends \Entities\Basket implements \Doctrine\ORM\Proxy\Proxy
|
||||
class Basket extends \Entities\Basket implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesBasketProxy extends \Entities\Basket implements \Doctrine\ORM\Prox
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesBasketElementProxy extends \Entities\BasketElement implements \Doctrine\ORM\Proxy\Proxy
|
||||
class BasketElement extends \Entities\BasketElement implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesBasketElementProxy extends \Entities\BasketElement implements \Doc
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesStoryWZProxy extends \Entities\StoryWZ implements \Doctrine\ORM\Proxy\Proxy
|
||||
class StoryWZ extends \Entities\StoryWZ implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesStoryWZProxy extends \Entities\StoryWZ implements \Doctrine\ORM\Pr
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesUsrListProxy extends \Entities\UsrList implements \Doctrine\ORM\Proxy\Proxy
|
||||
class UsrList extends \Entities\UsrList implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesUsrListProxy extends \Entities\UsrList implements \Doctrine\ORM\Pr
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesUsrListEntryProxy extends \Entities\UsrListEntry implements \Doctrine\ORM\Proxy\Proxy
|
||||
class UsrListEntry extends \Entities\UsrListEntry implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesUsrListEntryProxy extends \Entities\UsrListEntry implements \Doctr
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesUsrListOwnerProxy extends \Entities\UsrListOwner implements \Doctrine\ORM\Proxy\Proxy
|
||||
class UsrListOwner extends \Entities\UsrListOwner implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesUsrListOwnerProxy extends \Entities\UsrListOwner implements \Doctr
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesValidationDataProxy extends \Entities\ValidationData implements \Doctrine\ORM\Proxy\Proxy
|
||||
class ValidationData extends \Entities\ValidationData implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesValidationDataProxy extends \Entities\ValidationData implements \D
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesValidationParticipantProxy extends \Entities\ValidationParticipant implements \Doctrine\ORM\Proxy\Proxy
|
||||
class ValidationParticipant extends \Entities\ValidationParticipant implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesValidationParticipantProxy extends \Entities\ValidationParticipant
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Proxies;
|
||||
namespace Proxies\__CG__\Entities;
|
||||
|
||||
/**
|
||||
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
|
||||
*/
|
||||
class EntitiesValidationSessionProxy extends \Entities\ValidationSession implements \Doctrine\ORM\Proxy\Proxy
|
||||
class ValidationSession extends \Entities\ValidationSession implements \Doctrine\ORM\Proxy\Proxy
|
||||
{
|
||||
private $_entityPersister;
|
||||
private $_identifier;
|
||||
@@ -35,9 +35,18 @@ class EntitiesValidationSessionProxy extends \Entities\ValidationSession impleme
|
||||
}
|
||||
}
|
||||
|
||||
/** @private */
|
||||
public function __isInitialized()
|
||||
{
|
||||
return $this->__isInitialized__;
|
||||
}
|
||||
|
||||
|
||||
public function getId()
|
||||
{
|
||||
if ($this->__isInitialized__ === false) {
|
||||
return (int) $this->_identifier["id"];
|
||||
}
|
||||
$this->__load();
|
||||
return parent::getId();
|
||||
}
|
@@ -20,6 +20,11 @@ class XcacheCacheTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function setUp()
|
||||
{
|
||||
if(!function_exists('xcache_info'))
|
||||
{
|
||||
$this->markTestSkipped('Xcache not loaded');
|
||||
}
|
||||
|
||||
$this->object = new \Alchemy\Phrasea\Cache\XcacheCache;
|
||||
}
|
||||
|
||||
|
@@ -23,7 +23,6 @@ use Doctrine\Common\DataFixtures\Loader;
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
|
||||
\bootstrap::register_autoloads();
|
||||
|
||||
|
||||
abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
||||
|
2
lib/vendor/doctrine2-orm
vendored
2
lib/vendor/doctrine2-orm
vendored
Submodule lib/vendor/doctrine2-orm updated: 3e7c9a1ff4...191520439b
2
lib/vendor/sphinx
vendored
2
lib/vendor/sphinx
vendored
Submodule lib/vendor/sphinx updated: 4e878fa9c7...3435431efe
@@ -15,8 +15,7 @@
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
require_once __DIR__ . "/../../lib/bootstrap.php";
|
||||
bootstrap::register_autoloads();
|
||||
$Core = require_once __DIR__ . "/../../lib/bootstrap.php";
|
||||
|
||||
$request = http_request::getInstance();
|
||||
$parm = $request->get_parms('session');
|
||||
|
@@ -15,8 +15,7 @@
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
require_once __DIR__ . "/../../lib/bootstrap.php";
|
||||
bootstrap::register_autoloads();
|
||||
$Core = require_once __DIR__ . "/../../lib/bootstrap.php";
|
||||
|
||||
$app = require __DIR__ .'/../../lib/Alchemy/Phrasea/Application/Overview.php';
|
||||
|
||||
|
Reference in New Issue
Block a user