public function launch()
    {
        foreach($this->getServers() as $server)
        {
            $server = $this->getContainer()->get($server);
            if (!$server)
            {
                throw new \Exception("Unable to find Server Service.");
            }

            if (!($server instanceof ServerTypeInterface))
            {
                throw new \Exception("Server Service must implement ServerTypeInterface");
            }

            if ($this->getOutput())
            {
                $this->getOutput()->writeln("Launching " . $server->getName() . " on: " . $server->getAddress());
            }
            //launch server into background process?
            $server->launch();
        }
    }
public function launch()
    {
        foreach($this->getServers() as $server)
        {
            $server = $this->getContainer()->get($server);
            if (!$server)
            {
                throw new \Exception("Unable to find Server Service.");
            }

            if (!($server instanceof ServerTypeInterface))
            {
                throw new \Exception("Server Service must implement ServerTypeInterface");
            }

            if ($this->getOutput())
            {
                $this->getOutput()->writeln("Launching " . $server->getName() . " on: " . $server->getAddress());
            }
            //launch server into background process?
            $server->launch();
        }
    }
public function launch ( ) { foreach ( $ this -> getServers ( ) as $ server ) { $ server = $ this -> getContainer ( ) -> get ( $ server ) ; if ( ! $ server ) { throw new \ Exception ( "Unable to find Server Service." ) ; } if ( ! ( $ server instanceof ServerTypeInterface ) ) { throw new \ Exception ( "Server Service must implement ServerTypeInterface" ) ; } if ( $ this -> getOutput ( ) ) { $ this -> getOutput ( ) -> writeln ( "Launching " . $ server -> getName ( ) . " on: " . $ server -> getAddress ( ) ) ; } //launch server into background process? $ server -> launch ( ) ; } }
Launches the relevant servers needed by Clank.
Launches the relevant servers needed by Clank .