getAlias('logger')->setPublic(true); $container->getDefinition('monolog.handler.console')->setPublic(true); } }; $k->boot(); $c = $k->getContainer(); $c->get('monolog.handler.console')->setOutput( new StreamOutput(fopen('php://stdout', 'w'), StreamOutput::VERBOSITY_VERY_VERBOSE, )); $logger = $c->get('logger'); $em = $c->get('doctrine.orm.entity_manager'); // Start of playground };