get( $id, $invalid_behaviour ); } // phpcs:enable Squiz.Commenting.FunctionCommentThrowTag.WrongNumber /** * Attempts to find a given service ID in all registered containers. * * @param string $id The service ID. * * @return string|null The name of the container if the service was found. */ public static function find( $id ) { foreach ( self::$containers as $name => $container ) { if ( $container->has( $id ) ) { return $name; } } } }