use PhpDevCommunity\DependencyInjection\Container;
$services = pdo = $container->get(PDO::class);
var_dump($pdo); // Outputs: object(PDO)[18]
// Retrieve a simple configuration value
$googleKey = $container->get('google.key');
var_dump($googleKey); // Outputs: YQ4FcwaXD165Xm72lx53qzzNzkz7AUUN
use PhpDevCommunity\DependencyInjection\Container;
use PhpDevCommunity\DependencyInjection\ReflectionResolver;
use App\Service\MyService;
$services = ice::class);
var_dump($myService); // Outputs: object(MyService)
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.