container = new Pimple\Container(); $this->init(); } /** * container initialization */ abstract protected function init(); /** * Get service from container * @param string $service */ public function get($service) { return $this->container[$service]; } /** * Returns the instance of the container */ public static function instance() { if (is_null(self::$instance)) { self::$instance = new ServicesContainer(); } return self::$instance; } }