PSR-11 Container Manager with remote-fallback

Added: 

in webfats index.php:

    $this['Container']->setFinalFallbackContainer(new \IO4FallbackContainerClient (             $this['Container']->get('proxy-object-factory.cache-configuration'),         $this['Container']->get('app.runtime.codebase')      ->getRemoteApiBaseUrl(\Frdlweb\Contract\Autoload\CodebaseInterface::ENDPOINT_CONTAINER_REMOTE)   ) );  

The addContainer -Method adds a PSR-11 Container to the Containers-Stack.

The setFinalFallbackContainer -Method sets the final container wich is resolved as the last conainer in the stack, even if you add other containers later. This is where you CAN/SHOULD put a/the Remote-Container.

Reference:

Comments

NoticeLog in

Your need to be logged in to be able to comment.

connect with ❤️Webfan | connect with Google