classes/phing/Phing.php
private function addInputHandler(Project $project)
    {
        if ($this->inputHandlerClassname === null) {
            $handler = new ConsoleInputHandler(STDIN, new ConsoleOutput());
        } else {
            try {
                $clz = Phing::import($this->inputHandlerClassname);
                $handler = new $clz();
                if ($project !== null && method_exists($handler, 'setProject')) {
                    $handler->setProject($project);
                }
            } catch (Exception $e) {
                $msg = "Unable to instantiate specified input handler "
                    . "class " . $this->inputHandlerClassname . " : "
                    . $e->getMessage();
                throw new ConfigurationException($msg);
            }
        }
        $project->setInputHandler($handler);
    }
private function addInputHandler(Project $project)
    {
        if ($this->inputHandlerClassname === null) {
            $handler = new ConsoleInputHandler(STDIN, new ConsoleOutput());
        } else {
            try {
                $clz = Phing::import($this->inputHandlerClassname);
                $handler = new $clz();
                if ($project !== null && method_exists($handler, 'setProject')) {
                    $handler->setProject($project);
                }
            } catch (Exception $e) {
                $msg = "Unable to instantiate specified input handler "
                    . "class " . $this->inputHandlerClassname . " : "
                    . $e->getMessage();
                throw new ConfigurationException($msg);
            }
        }
        $project->setInputHandler($handler);
    }
private function addInputHandler ( Project $ project ) { if ( $ this -> inputHandlerClassname === null ) { $ handler = new ConsoleInputHandler ( STDIN , new ConsoleOutput ( ) ) ; } else { try { $ clz = Phing :: import ( $ this -> inputHandlerClassname ) ; $ handler = new $ clz ( ) ; if ( $ project !== null && method_exists ( $ handler , 'setProject' ) ) { $ handler -> setProject ( $ project ) ; } } catch ( Exception $ e ) { $ msg = "Unable to instantiate specified input handler " . "class " . $ this -> inputHandlerClassname . " : " . $ e -> getMessage ( ) ; throw new ConfigurationException ( $ msg ) ; } } $ project -> setInputHandler ( $ handler ) ; }
Creates the InputHandler and adds it to the project.

@param Project $project the project instance.

@throws ConfigurationException
Creates the InputHandler and adds it to the project .