eee
This commit is contained in:
@@ -4,6 +4,7 @@ defined('APP_PATH') or define('APP_PATH', realpath(__DIR__ . '/../../'));
|
||||
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use Kiri\Application;
|
||||
use Kiri\Config\ConfigProvider;
|
||||
use Kiri\Core\ArrayAccess;
|
||||
use Kiri\Di\Context;
|
||||
@@ -29,6 +30,20 @@ interface Arrayable
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('application')) {
|
||||
|
||||
/**
|
||||
* @return Application
|
||||
* @throws Exception
|
||||
*/
|
||||
function application(): Application
|
||||
{
|
||||
return Kiri::getDi()->get(Application::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('make')) {
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri;
|
||||
|
||||
interface ToArray
|
||||
{
|
||||
|
||||
public function toArray();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user