colossus/src/Controllers/Controller.php

20 lines
323 B
PHP
Raw Normal View History

2022-11-25 15:46:18 -05:00
<?php
namespace BitGoblin\Colossus\Controllers;
use Psr\Container\ContainerInterface;
class Controller {
protected $container;
public function __construct(ContainerInterface $container) {
$this->container = $container;
}
public function get(string $name) {
return $this->container->get($name);
}
}