/** * Bootstraps the application. * * This method is called after all services are registered * and should be used for "dynamic" configuration (whenever * a service must be requested). */ public function boot(Application $app) { $app->register(new TwigServiceProvider(), array('twig.path' => $app['sentinel.twig.path'])); $app->mount('/', $this->connect($app)); // Get Projects $config = new ConfigServiceProvider(); $app['sentinel.config'] = $config->getConfig(); $app['sentinel.projects'] = $config->getProjects(); $app['sentinel.parameters'] = $config->getParameters(); $app['sentinel.flatprojects'] = $config->getProjects(true); $app['sentinel.series'] = $config->getSeries(); // Create Database $this->db = new MongoDatabase($app['sentinel.parameters']['mongo']); }