getDbService example

'App\\Schema' => true,
        ];
    }

    /** * Gets the public 'App\Bus' shared service. * * @return \App\Bus */
    protected static function getBusService($container)
    {
        $a = ($container->services['App\\Db'] ?? self::getDbService($container));

        $container->services['App\\Bus'] = $instance = new \App\Bus($a);

        $b = ($container->privates['App\\Schema'] ?? self::getSchemaService($container));
        $c = new \App\Registry();
        $c->processor = [$a$instance];

        $d = new \App\Processor($c$a);

        $instance->handler1 = new \App\Handler1($a$b$d);
        $instance->handler2 = new \App\Handler2($a$b$d);

        
Home | Imprint | This part of the site doesn't use cookies.