mirror of
https://github.com/flextype/flextype.git
synced 2025-08-10 15:14:20 +02:00
feat(core): Flextype Solid Core - next round #458
This commit is contained in:
@@ -36,14 +36,14 @@ class Flextype extends App
|
||||
|
||||
// Store instance container
|
||||
self::$container = self::$instance->getContainer();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Container
|
||||
* Get Dependency Injection Container.
|
||||
*
|
||||
* @param string $key DI Container key.
|
||||
*/
|
||||
public function container($key = null)
|
||||
public function container(string $key = null)
|
||||
{
|
||||
if ($key != null) {
|
||||
return self::$container[$key];
|
||||
@@ -54,7 +54,6 @@ class Flextype extends App
|
||||
|
||||
/**
|
||||
* Returns Flextype Instance
|
||||
*
|
||||
*/
|
||||
public static function getInstance()
|
||||
{
|
||||
|
Reference in New Issue
Block a user