Skip to content

Commit

Permalink
Remove commented-out defaults and redundant loader calls in Kernel.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarinas committed Dec 30, 2024
1 parent 93b9f62 commit 45b1be5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions app/src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Copyright 2024 (C) IDMarinas - All Rights Reserved
*
* Last modified by "IDMarinas" on 30/12/2024, 17:53
* Last modified by "IDMarinas" on 30/12/2024, 18:28
*
* @project IDMarinas Template Bundle
* @see https://github.com/idmarinas/idm-template-bundle
Expand Down Expand Up @@ -39,9 +39,9 @@ public function configureRoutes (RoutingConfigurator $routes): void
->add('app_home', '/')
->methods(['GET'])
->controller(TemplateController::class)
->defaults([
'template' => 'path/to/template.html.twig',
])
//->defaults([
// 'template' => 'path/to/template.html.twig',
//])
;
}

Expand All @@ -54,13 +54,7 @@ protected function build (ContainerBuilder $container): void

// Load config for Test App
$loader->load($this->getTestPackagesConfigDir() . '/framework.php');
$loader->load($this->getTestPackagesConfigDir() . '/framework/mailer.php');
$loader->load($this->getTestPackagesConfigDir() . '/framework/router.php');
$loader->load($this->getTestPackagesConfigDir() . '/framework/session.php');
$loader->load($this->getTestPackagesConfigDir() . '/framework/validation.php');
$loader->load($this->getTestPackagesConfigDir() . '/doctrine.php');
$loader->load($this->getTestPackagesConfigDir() . '/security.php');
$loader->load($this->getTestPackagesConfigDir() . '/stof_doctrine_extensions.php');

// Load service of Bundle
$loader->load($this->getTestConfigDir() . '/service.php');
Expand Down

0 comments on commit 45b1be5

Please sign in to comment.