public static function createCerebro(ContainerInterface $container): Application
    {
        $console = new Application();
        $console->setContainer($container);

        if ($container->has(EventManagerContract::class)) {
            $console->setEventManager($container->get(EventManagerContract::class));
        }

        return $console;
    }
public static function createCerebro(ContainerInterface $container): Application
    {
        $console = new Application();
        $console->setContainer($container);

        if ($container->has(EventManagerContract::class)) {
            $console->setEventManager($container->get(EventManagerContract::class));
        }

        return $console;
    }
public static function createCerebro ( ContainerInterface $ container ) : Application { $ console = new Application ( ) ; $ console -> setContainer ( $ container ) ; if ( $ container -> has ( EventManagerContract :: class ) ) { $ console -> setEventManager ( $ container -> get ( EventManagerContract :: class ) ) ; } return $ console ; }
Create a new console application instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Console\Application
Create a new console application instance .