src/ServiceContainer.php
public function has($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return isset($this->keys[$id]);
    }
public function has($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }

        return isset($this->keys[$id]);
    }
public function has ( $ id ) { if ( isset ( $ this -> aliases [ $ id ] ) ) { $ id = $ this -> aliases [ $ id ] ; } return isset ( $ this -> keys [ $ id ] ) ; }
Returns true if the container can return an entry for the given
identifier and returns false otherwise.

@param string $id Identifier of the service.
@return bool True - if the container can return an entry for the given
identifier, false - otherwise.
Returns true if the container can return an entry for the given identifier and returns false otherwise .