mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Refactor service interface implementation declaration
This commit is contained in:
@@ -23,7 +23,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class ApcCache extends ServiceAbstract implements ServiceInterface
|
class ApcCache extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $cache;
|
protected $cache;
|
||||||
|
@@ -24,7 +24,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class ArrayCache extends ServiceAbstract implements ServiceInterface
|
class ArrayCache extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $cache;
|
protected $cache;
|
||||||
|
@@ -23,7 +23,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class MemcacheCache extends ServiceAbstract implements ServiceInterface
|
class MemcacheCache extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
const DEFAULT_HOST = "localhost";
|
const DEFAULT_HOST = "localhost";
|
||||||
|
@@ -23,7 +23,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class RedisCache extends ServiceAbstract implements ServiceInterface
|
class RedisCache extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
const DEFAULT_HOST = "localhost";
|
const DEFAULT_HOST = "localhost";
|
||||||
|
@@ -23,7 +23,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class XcacheCache extends ServiceAbstract implements ServiceInterface
|
class XcacheCache extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $cache;
|
protected $cache;
|
||||||
|
@@ -24,7 +24,7 @@ use Doctrine\Logger\MonologSQLLogger;
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class Monolog extends ParentLog implements ServiceInterface
|
class Monolog extends ParentLog
|
||||||
{
|
{
|
||||||
|
|
||||||
const JSON_OUTPUT = 'json';
|
const JSON_OUTPUT = 'json';
|
||||||
|
@@ -23,7 +23,7 @@ use Doctrine\DBAL\Logging\EchoSQLLogger;
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class Phpecho extends ServiceAbstract implements ServiceInterface
|
class Phpecho extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function getDriver()
|
public function getDriver()
|
||||||
|
@@ -24,7 +24,7 @@ use Monolog\Handler\FirePHPHandler;
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class FirePHP extends ServiceAbstract implements ServiceInterface
|
class FirePHP extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $logger;
|
protected $logger;
|
||||||
|
@@ -22,7 +22,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class Monolog extends ServiceAbstract implements ServiceInterface
|
class Monolog extends ServiceAbstract
|
||||||
{
|
{
|
||||||
const DEFAULT_MAX_DAY = 10;
|
const DEFAULT_MAX_DAY = 10;
|
||||||
|
|
||||||
|
@@ -24,7 +24,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
class Doctrine extends ServiceAbstract implements ServiceInterface
|
class Doctrine extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $loggers = array(
|
protected $loggers = array(
|
||||||
|
@@ -20,7 +20,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
abstract class ServiceAbstract
|
abstract class ServiceAbstract implements ServiceInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $core;
|
protected $core;
|
||||||
|
@@ -16,7 +16,7 @@ use Alchemy\Phrasea\Core,
|
|||||||
Alchemy\Phrasea\Core\Service\ServiceAbstract,
|
Alchemy\Phrasea\Core\Service\ServiceAbstract,
|
||||||
Alchemy\Phrasea\Core\Service\ServiceInterface;
|
Alchemy\Phrasea\Core\Service\ServiceInterface;
|
||||||
|
|
||||||
class Twig extends ServiceAbstract implements ServiceInterface
|
class Twig extends ServiceAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user