You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
<?php |
|
|
|
namespace Twister; |
|
|
|
/** |
|
* Extending from this base Controller class for Controllers is optional! |
|
* The alternative is to make the `action handlers` static methods in the controller |
|
*/ |
|
abstract class Controller implements ContainerInterface |
|
{ |
|
use ContainerAwareTrait; |
|
|
|
function __set($name, $value) { return $this->container->__set($name, $value); } |
|
function &__get($name) { return $this->container->__get($name); } |
|
function __isset($name) { return $this->container->__isset($name); } |
|
function __unset($name) { return $this->container->__unset($name); } |
|
function &__call($method, $args) { return $this->container->__call($method, $args); } |
|
|
|
function set($key, $value) { return $this->container->set($key, $value); } |
|
function &get($key) { return $this->container->get($key); } |
|
function has($key) { return $this->container->has($key); } |
|
function &merge($key, array $arr) { return $this->container->merge($key, $arr); } |
|
function remove($key) { return $this->container->remove($key); } |
|
}
|
|
|