Heystack\Core\DependencyInjection\SilverStripe\HeystackInjectionCreator
Meant to replace SilverStripe's Injection Creator and allows services in the generated container (Using Symfony's Dependency Injection) to be used in SilverStripe's Dependency Injection
This class also allows the usage of parameters from the heystack container in SilverStripe injection
When a requested service of parameter does not begin with "heystack." the the implementation
will default to using the standard SilverStripe InjectionCreator
But if a service is request with "heystack." as a prefix but the service doesn't exist in the
heystack container, then the service will throw an exception
- Author: Cam Spiers <cameron@heyday.co.nz>
- Copyright: Heyday
Synopsis
class HeystackInjectionCreator
extends InjectionCreator
{
- // members
- protected HeystackSilverStripeContainer $heystackContainer;
- // methods
- public void __construct()
- public mixed|object create()
Hierarchy
Extends
- InjectionCreator
Members
protected
- $heystackContainer — \Heystack\Core\DependencyInjection\SilverStripe\HeystackSilverStripeContainer