registerServiceProvider(new ComponentDispatcherFactory('\\EIS\\Component\\EIS')); $container->registerServiceProvider(new MVCFactory('\\EIS\\Component\\EIS')); $container->registerServiceProvider(new RouterFactory('\\EIS\\Component\\EIS')); $container->set( ComponentInterface::class, static fn(Container $c) => new MVCComponent( $c->get(ComponentDispatcherFactoryInterface::class) ) ); } };