protected function registerCommandExtensions(ServiceLocator $serviceLocator) { $serviceLocator->get(Services::KERNEL_COMMAND_EXTENSION_REGISTRY)->register(new MetadataExtension()); }