I am trying to setup Symfony2 into an existing project, so I am setting everything up from scratch. I keep getting "500 Internal Server Error" inside Symfony2. There are no logs inside web server logs and Symfony2 does not even create a log file inside the the logs directory (I set it up as ROOT/var/logs using AppKernel). Here is my configuration:
parameters:
app_locales: en|fr|de|es|cs|nl|ru|uk|ro|pt_BR|pl|it|ja|id|ca
app.notifications.email_sender: anonymous@example.com
locale: en
secret: "MaEKo3wZsCMIz7tR1uBCyIDGhvJU0EbnYgl0YlhognA"
framework:
ide: sublime
translator: { fallback: "%locale%" }
secret: "%secret%"
router:
resource: "%kernel.root_dir%/config/routes.yml"
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
templating:
engines: ['twig']
default_locale: "%locale%"
trusted_hosts: ~
trusted_proxies: ~
session:
handler_id: ~
fragments: ~
http_method_override: true
twig:
debug: "%kernel.debug%"
strict_variables: "%kernel.debug%"
# routes.yml
homepage:
path: /
defaults:
_controller: FrameworkBundle:Controller:template
template: default/homepage.html.twig
And here is AppKernel.php:
class AppKernel extends Kernel {
public function registerBundles() {
return [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle,
new Symfony\Bundle\SecurityBundle\SecurityBundle,
new Symfony\Bundle\TwigBundle\TwigBundle,
new Symfony\Bundle\DebugBundle\DebugBundle,
new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle
];
}
public function getCacheDir() {
return $this->rootDir.'/../var/cache';
}
public function getLogDir() {
return $this->rootDir.'/../var/logs';
}
public function registerContainerConfiguration(LoaderInterface $loader) {
$loader->load(__DIR__.'/config/config.yml');
}
}
What am I missing here?