iamfredric/instantiator

This package is abandoned and no longer maintained. No replacement package was suggested.

Desc

1.0.1 2021-03-23 11:51 UTC

This package is auto-updated.

Last update: 2022-02-23 13:37:51 UTC


README

This is a small library for automaticly resolving classes.

How to use it

<?php
use Iamfredric\Instantiator\Instantiator;

// Instantiate the instantiator
$instantiator = new Instantiator('MyClass');

// Resolve a class
$myClass = $instantiator->call();

// Resolve a class method
$output = $instantiator->callMethod('myMethod');