v0.2.5 2023-02-22 02:09 UTC

This package is auto-updated.

Last update: 2024-10-22 05:42:30 UTC


README

install

composer require cblink-service/kernel

used

$config = [
    // use private url
    'private' => true,
    'base_url' => ' private url',
    'app_id' => 'app id',
    'key' => 'key id',
    'secret' => 'secret key',
];

// Application is your package App
// Application must be extends Cblink\\Service\Kernel\ServiceContainer
$app = new Application($config);

$app->logger->info('test', []);

extends

// TestServiceProvider must be declared Pimple\ServiceProviderInterface
// app call register method or implement method 'getCustomProviders' 
$app->register(TestServcePovider::class);


// used 
$app->test->xxx();