Skip to content

Commit

Permalink
Release candidate 0.3.1
Browse files Browse the repository at this point in the history
- Added the ServiceContainer, all services now must extend the
ServiceContainer class
  • Loading branch information
farizluqman committed Jan 22, 2017
1 parent cb5ed16 commit 057d906
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,12 +47,4 @@ private function prepare(){
$this->$varName = new $className;
}
}

/**
* Dump function
*/
public function dump(){
return($this);
}

}
}
21 changes: 21 additions & 0 deletions src/Service/ServiceContainer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
namespace Core\Service;

class ServiceContainer {

/**
* @return ServiceContainer|object
*/
public function getThis()
{
return $this;
}

/**
* @return ServiceContainer|object
*/
public function dumpThis()
{
dd($this);
}
}

0 comments on commit 057d906

Please sign in to comment.