Handler1 example


        $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);

        return $instance;
    }

    /** * Gets the public 'App\Db' shared service. * * @return \App\Db */
    protected static function getDbService($container)
    {
Home | Imprint | This part of the site doesn't use cookies.