KernelLoader::has PHP Method

has() public method

Returns true if the service id is defined.
public has ( string $reference ) : boolean
$reference string The service id
return boolean true if the service id is defined, false otherwise
    public function has($reference)
    {
        return $this->getKernel()->getContainer()->has($reference);
    }