/** * Set the legacy facade */ public static function _setFacade($facade) { if (isset(self::$facade) && get_called_class() != 'EllisLab\\ExpressionEngine\\Controller\\Error\\FileNotFound') { throw new \Exception('Cannot change the facade after boot'); } self::$facade = $facade; }