public function boot($assign_to_config = null)
    {
        parent::boot();

        $app = $this->loadApplicationCore();

        if (isset($assign_to_config)) {
            $this->overrideConfig($assign_to_config);
        }

        $this->getLegacyApp()->getFacade()->load->library('core');

        $this->getLegacyApp()->getFacade()->core->bootstrap();

        Controller::_setFacade($this->getLegacyApp()->getFacade());

        new Controller();
    }