Skip to content

[feature] 添加基础类库 #5

@kicoer

Description

@kicoer

特性描述

init pump kernel

你期望的解决方案

复制 pump lib 中项目无关的 Util Redis Http 等模块到源目录下

附加内容

  • Kernel
    • Kernel.php 依赖 Nonda\Event\Dispatcher, Nonda\Event\DispatcherInterface, Nonda\Event\Event, Nonda\Events, Nonda\Exception\BaseException, Nonda\Log\BaseLog, Ramsey\Uuid\Uuid
  • Events.php
  • Event
    • DelayableEventTrait.php
    • Dispatcher.php 依赖 Nonda\Events, Nonda\Exception\BaseException, Nonda\Kernel\Kernel, Nonda\Logger\EventContextLogger
    • DispatcherInterface.php 依赖 Nonda\Kernel\Kernel
    • Event.php 依赖 Nonda\Kernel\Kernel, DelayableEventTrait
    • EventInterface.php
    • MileageTripEvent.php 依赖 MongoDB\Model\BSONDocument, Nonda\Kernel\Kernel
    • RequestShareEvent.php 依赖 MongoDB\Model\BSONDocument, Nonda\Kernel\Kernel
    • RunDelayJobEvent.php
    • SetServiceEvent.php 依赖 Nonda\Kernel\Kernel
    • ShipDataEvent.php 依赖 Illuminate\Queue\SerializesModels
    • StopableEventTrait.php
    • VehicleEvent.php 依赖 MongoDB\Model\BSONDocument, Nonda\Kernel\Kernel
  • Log
    • AbstractLog.php
    • BaseLog.php
  • Logger
    • ContextLogger.php 依赖 Monolog\Formatter\FormatterInterface, Monolog\Handler\HandlerInterface, Monolog\Handler\StreamHandler, Monolog\Logger, Nonda\Handler\InternalConfigHandler, Nonda\InternalConfig\ContextConfig, Nonda\Kernel\Kernel
    • DbQueryContextLogger.php 依赖 Monolog\Formatter\FormatterInterface, Nonda\Kernel\Kernel
    • EventContextLogger.php 依赖 Monolog\Formatter\FormatterInterface, Nonda\Kernel\Kernel
    • GALogger.php 依赖 Illuminate\Support\Facades\Log, Ramsey\Uuid\Uuid
    • MongoEdmLogger.php 依赖 MongoDB\BSON\UTCDateTime, Nonda\Parsedb\Model\EdmLog, Ramsey\Uuid\Uuid
  • Exception
    • ApiException.php 依赖 Exception
    • BaseException.php 依赖 Throwable
  • Util
    • Arabic.php
    • Bcrypt.php
    • BlackList.php
    • BusinessMileageReport.php
    • BusinessMileageReportRender.php 依赖 mPDF
    • CalcCell.php 依赖 Nonda\Exception\BaseException, Nonda\Token\Promotion
    • Calendar.php
    • Converter.php 依赖 MongoDB\BSON\UTCDateTime
    • CountryInfo.php
    • CsvUtil.php 依赖 Nonda\Laravel\Proxy\Nonda, Nonda\Parsedb\Driver\CursorWrapper, Nonda\Parsedb\Model\Document
    • Detector.php 依赖 laravel config
    • DownloadUtil.php
    • EncoderHelper.php
    • ListUtil.php 依赖 Nonda\Exception\BaseException, Predis\Client
    • MailUtil.php 依赖 Illuminate\Support\Facades\Mail
    • MileageLog.php
    • MileageRateData.php
    • MileageReport.php
    • MileageReportRender.php 依赖 mPDF
    • RapidVinApi.php 依赖 GuzzleHttp\Client, GuzzleHttp\Exception\ClientException, Illuminate\Support\Facades\Log, Nonda\Kernel\Kernel
    • Str.php 依赖 Nonda\Exception\BaseException, Ramsey\Uuid\Uuid
    • ToMars.php
    • Token.php
    • UniquenessChecker.php 依赖 Nonda\Laravel\Proxy\Nonda, Predis\Client
    • VehicleMileageReport.php
    • VehicleMileageReportRender.php
    • WhiteList.php

modify

  • lib\Event\Dispatcher 取消延迟加载代码
  • lib\Logger\ContextLogger 取消两个配置依赖,isEnabled()直接返回true
  • lib\Logger\ContextLogger 从 kernel 中获取 logger.path 配置获取日志

Metadata

Metadata

Assignees

No one assigned

    Labels

    Featuresome awesome ideas

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions