We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Defines a contract for service factories that rely on a PSR-11 container for instantiation.
Implementing classes MUST implement the __invoke method which SHALL be responsible for returning the fully constructed service instance.
This interface is commonly used in container-based systems to register factories dynamically.
\FastForward\Container\Factory\FactoryInterface
Creates a service instance using the provided container.
public __invoke(\Psr\Container\ContainerInterface $container): mixed
Implementations MUST resolve all necessary dependencies from the container and return a fully constructed instance.
Parameters:
$container
Return Value:
the created service instance