<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[Frdlweb: All site blogs}]]></title>
	<link>https://frdl.de/blog?offset=10</link>
	<atom:link href="https://frdl.de/blog?offset=10" rel="self" type="application/rss+xml" />
	<description><![CDATA[}]]></description>
		<item>
	<guid isPermaLink="true">https://frdl.de/blog/view/137/psr-11-container-manager-with-remote-fallback</guid>
	<pubDate>Sat, 15 Jul 2023 21:02:18 +0000</pubDate>
	<link>https://frdl.de/blog/view/137/psr-11-container-manager-with-remote-fallback</link>
	<title><![CDATA[PSR-11 Container Manager with remote-fallback]]></title>
	<description><![CDATA[<p>Added:&nbsp;</p><ul><li><a href="https://registry.frdl.de/?goto=php%3AIO4%5CContainer%5CContainerCollectionInterface.php">IO4\Container\ContainerCollectionInterface</a></li><li>Final Fallback-Container</li><li><a href="https://registry.frdl.de/?goto=php%3AIO4FallbackContainerClient.php">Remote-Container</a> as Final Fallback-Container</li></ul><p>in <a href="https://github.com/frdlweb/webfat/blob/44bed3c5c73c998c79b1634d92b659a19ddbb936/public/index.php#L4626">webfats index.php</a>:</p><p><code>&nbsp; &nbsp; $this['Container']-&gt;setFinalFallbackContainer(new \IO4FallbackContainerClient ( &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this['Container']-&gt;get('proxy-object-factory.cache-configuration'), &nbsp; &nbsp; &nbsp; &nbsp; $this['Container']-&gt;get('app.runtime.codebase') &nbsp; &nbsp; &nbsp;-&gt;getRemoteApiBaseUrl(\Frdlweb\Contract\Autoload\CodebaseInterface::ENDPOINT_CONTAINER_REMOTE) &nbsp; ) ); &nbsp;</code></p><p>The <i>addContainer</i> -Method adds a PSR-11 Container to the Containers-Stack.</p><p>The <i>setFinalFallbackContainer</i> -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.</p><p>Reference:</p><ul><li><a href="https://registry.frdl.de/?goto=php%3APsr%5CContainer">PSR-11 Container</a></li><li><a href="https://registry.frdl.de/?goto=php%3Afrdl%5CContainerCollectionV2.php">ContainerCollectionV2</a></li></ul>]]></description>
	<dc:creator>Melanie Wehowski</dc:creator>		</item>
</channel>
</rss>
