HippoPHP\Hippo\HippoTextUI::main PHP Метод

main() публичный статический Метод

public static main ( $args )
    public static function main($args)
    {
        if (!$args) {
            throw new Exception('Hippo must be run from command line interface.');
        }
        $environment = new Environment();
        $fileSystem = new FileSystem();
        $configReader = new YAMLConfigReader($fileSystem);
        $checkRepository = new CheckRepository($fileSystem);
        $pathToSelf = array_shift($args);
        $context = new HippoTextUIContext($fileSystem, $args);
        $hippoTextUi = new self($environment, $fileSystem, $checkRepository, $configReader, $pathToSelf, $context);
        $hippoTextUi->run();
    }