release; } /** * {@inheritdoc} */ public function require_all_upgrades() { return false; } /** * {@inheritdoc} */ public function concern() { return $this->concern; } /** * {@inheritdoc} */ public function apply(base $appbox, Application $app) { $config = $app['phraseanet.configuration']->getConfig(); $config['api_cors'] = array( 'enabled' => false, 'allow_credentials' => false, 'allow_origin' => array(), 'allow_headers' => array(), 'allow_methods' => array(), 'expose_headers' => array(), 'max_age' => 0, 'hosts' => array(), ); $app['phraseanet.configuration']->setConfig($config); return true; } }