Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

Latest commit

 

History

History
17 lines (13 loc) · 359 Bytes

readme.md

File metadata and controls

17 lines (13 loc) · 359 Bytes

Instantiator

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');