public function bootstrapKernel(AppKernel $kernel) { $kernel->bootstrap(); $kernel->getConfiguration()->setReadOnly(); }