initial commit
This commit is contained in:
16
app/Services/CustomContainer.php
Normal file
16
app/Services/CustomContainer.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
class CustomContainer
|
||||
{
|
||||
private static $resource;
|
||||
|
||||
public static function setContainer($key,$value){
|
||||
static::$resource[$key] = $value;
|
||||
}
|
||||
|
||||
public static function getContainer($key){
|
||||
return static::$resource[$key] ?? "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user