protected Container::getServiceAlternatives($id)
Provides alternatives in case a service was not found.
string $id: The service to get alternatives for.
string[] An array of strings with suitable alternatives.
protected function getServiceAlternatives($id) { $all_service_keys = array_unique(array_merge(array_keys($this->services), array_keys($this->serviceDefinitions))); return $this->getAlternatives($id, $all_service_keys); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!DependencyInjection!Container.php/function/Container::getServiceAlternatives/8.1.x