Created
March 21, 2019 09:14
-
-
Save kanian/bb1b715a7f447c38390cdeaff19e7fbb to your computer and use it in GitHub Desktop.
Using ContainerX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Kanian\ContainerX\ContainerX; | |
$container = new ContainerX(); | |
$container['chauffeur'] = HumanDriver::class; | |
$container['limo'] = Car::class; | |
$limo = $container['limo']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment