public function addEntryPoint(Entrypoint $e, $target = null)
    {
        $entryPoints = $this->getOption(self::OPTION_ENTRYPOINTS);
        $entryPoints[$e->getId()] = $e;
        $this->setOption(self::OPTION_ENTRYPOINTS, $entryPoints);

        if (!is_null($target)) {
            $this->activateEntryPoint($e->getId(), $target);
        }
    }
public function addEntryPoint(Entrypoint $e, $target = null)
    {
        $entryPoints = $this->getOption(self::OPTION_ENTRYPOINTS);
        $entryPoints[$e->getId()] = $e;
        $this->setOption(self::OPTION_ENTRYPOINTS, $entryPoints);

        if (!is_null($target)) {
            $this->activateEntryPoint($e->getId(), $target);
        }
    }
public function addEntryPoint ( Entrypoint $ e , $ target = null ) { $ entryPoints = $ this -> getOption ( self :: OPTION_ENTRYPOINTS ) ; $ entryPoints [ $ e -> getId ( ) ] = $ e ; $ this -> setOption ( self :: OPTION_ENTRYPOINTS , $ entryPoints ) ; if ( ! is_null ( $ target ) ) { $ this -> activateEntryPoint ( $ e -> getId ( ) , $ target ) ; } }
Add an Entrypoint and activate it if a target is specified

@param Entrypoint $e
@param string $target
Add an Entrypoint and activate it if a target is specified