cache ); $this->_registry->get( 'notification.admin' ) ->store( $message, 'error', 1 ); $settings = $this->_registry->get( 'model.settings' ); /* @var $settings Ai1ec_Settings */ // used shutdown to store settings // after this line exception occurs $type = ( is_writable( parent::getCache() ) ) ? 'AI1EC_CACHE_UNAVAILABLE' : ''; $settings->set( 'twig_cache', $type )->persist(); } } /** * Set Ai1ec_Registry_Object * * @param Ai1ec_Registry_Object $registry * * @return void */ public function set_registry( Ai1ec_Registry_Object $registry ) { $this->_registry = $registry; } }