src/Container/src/MutableContainer.php
private function validateId(string $id)
    {
        if (!interface_exists($id) && !class_exists($id)) {
            throw new InvalidArgumentException(
                sprintf('Invalid service id "%s". Service id must be an existing interface or class name.', $id)
            );
        }
    }
private function validateId(string $id)
    {
        if (!interface_exists($id) && !class_exists($id)) {
            throw new InvalidArgumentException(
                sprintf('Invalid service id "%s". Service id must be an existing interface or class name.', $id)
            );
        }
    }
private function validateId ( string $ id ) { if ( ! interface_exists ( $ id ) && ! class_exists ( $ id ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid service id "%s". Service id must be an existing interface or class name.' , $ id ) ) ; } }
Validate service identifier. Throw an Exception in case of invalid value.

@param string $id
@return void
@throws InvalidArgumentException
Validate service identifier . Throw an Exception in case of invalid value .