From 057d9064bc4b81805aad41a1429dea36db3e9974 Mon Sep 17 00:00:00 2001 From: FlexSuite Date: Mon, 23 Jan 2017 00:41:34 +0800 Subject: [PATCH] Release candidate 0.3.1 - Added the ServiceContainer, all services now must extend the ServiceContainer class --- src/Service.php | 12 ++---------- src/Service/ServiceContainer.php | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 10 deletions(-) create mode 100644 src/Service/ServiceContainer.php diff --git a/src/Service.php b/src/Service.php index ed31111..b789669 100644 --- a/src/Service.php +++ b/src/Service.php @@ -7,7 +7,7 @@ * input and output processing * @package Core */ -class Service { +class Service extends Service\ServiceContainer { /** * Contains the object of instantiation of the Service class * @static @@ -47,12 +47,4 @@ private function prepare(){ $this->$varName = new $className; } } - - /** - * Dump function - */ - public function dump(){ - return($this); - } - -} \ No newline at end of file +} diff --git a/src/Service/ServiceContainer.php b/src/Service/ServiceContainer.php new file mode 100644 index 0000000..dff5cae --- /dev/null +++ b/src/Service/ServiceContainer.php @@ -0,0 +1,21 @@ +