示例#1
0
function core(string $abstract = null, array $parameters = [])
{
    if (is_null($abstract)) {
        return Core::getInstance();
    }
    return Core::getInstance()->make($abstract, $parameters);
}
示例#2
0
<?php

namespace PHPSTORM_META;

$STATIC_METHOD_TYPES = [\Spires\Container\Container::make('') => ['' == '@'], new \Spires\Container\Container() => ['' == '@'], \Spires\Contracts\Container\Container::make('') => ['' == '@'], new \Spires\Contracts\Container\Container() => ['' == '@'], \Spires\Core\Core::make('') => ['' == '@'], new \Spires\Core\Core() => ['' == '@'], \Spires\Contracts\Core\Core::make('') => ['' == '@'], new \Spires\Contracts\Core\Core() => ['' == '@'], \core('') => ['' == '@']];
示例#3
0
 private function debug(string $message)
 {
     $indention = str_repeat(' ', $this->indent * 2);
     $this->core->make(Client::class)->logDebug($indention . $message);
 }