Files
Phraseanet/lib/Alchemy/Phrasea/ControllerProvider/Api/Api.php
2016-09-28 20:58:26 +02:00

19 lines
408 B
PHP

<?php
namespace Alchemy\Phrasea\ControllerProvider\Api;
use Alchemy\Phrasea\Core\Configuration\PropertyAccess;
use Silex\Application;
abstract class Api
{
protected function isApiEnabled(Application $application)
{
/** @var PropertyAccess $config */
$config = $application['conf'];
return $config->get([ 'registry', 'api-clients', 'api-enabled' ], true) == true;
}
}