public static function build(EventDispatcher $dispatcher) { self::$container = new Container($dispatcher); self::$container->set('container', self::$container); self::$dispatcher = $dispatcher; $self = new self(); $self->appendFromFile(BASEPATH . '/core/services.php'); return self::$container; }