fabpot / twittee

A Dependency Injection Container that fits in a tweet

This URL has Read+Write access

twittee / twittee.php
100644 8 lines (6 sloc) 0.147 kb
1
2
3
4
5
6
7
8
<?php
 
class Container {
 protected $s=array();
 function __set($k, $c) { $this->s[$k]=$c; }
 function __get($k) { return $this->s[$k]($this); }
}