src/Framework/Console/Factory/ConsoleFactory.php
public function build(Container $container)
    {
        return new Console(
            new Buffer(
                $container->get('console.stream'),
                $container->has('console.autoFlush') ? $container->get('console.autoFlush') : true
            )
        );
    }
public function build(Container $container)
    {
        return new Console(
            new Buffer(
                $container->get('console.stream'),
                $container->has('console.autoFlush') ? $container->get('console.autoFlush') : true
            )
        );
    }
Method that is called by the container, whenever a new
instance of the application is necessary. It is the only
method called when creating instances and thus, should
produce/return the fully configured object it is intended
to build.

@param Container $container

@return mixed