getDefinitions()); if (!in_array('path_alias.repository', $definitions)) { $container->removeDefinition('pathauto.commands'); } } }