Skip to content

Commit

Permalink
framework 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Surkov committed Aug 25, 2021
1 parent 5d2cf48 commit 1c05c25
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,34 +101,30 @@ $config = [
'packages_paths' => [
$basePath . '/vendor', // Папка для приложений
],
'bootstrappers' => [
\Dissonance\Develop\Bootstrap\DebugBootstrap::class,/// debug only
\Dissonance\Bootstrap\EventBootstrap::class,
\Dissonance\SimpleCacheFilesystem\Bootstrap::class,
\Dissonance\PackagesLoaderFilesystem\Bootstrap::class,
\Dissonance\Packages\PackagesBootstrap::class,
\Dissonance\Packages\ResourcesBootstrap::class,
\Dissonance\Apps\Bootstrap::class,
\Dissonance\Http\Bootstrap::class,
\Dissonance\HttpKernel\Bootstrap::class,
\Dissonance\CacheRouting\Bootstrap::class,
\Dissonance\ViewBlade\Bootstrap::class,
],
'providers' => [
\Dissonance\Http\Cookie\CookiesProvider::class,
\Dissonance\SettlementsRouting\Provider::class,
\Dissonance\Session\NativeProvider::class,
],
'providers_exclude' => [
\Dissonance\Routing\Provider::class,
]
'bootstrappers' => [
\Dissonance\Develop\Bootstrap\DebugBootstrap::class,/// debug only
\Dissonance\Core\Bootstrap\EventBootstrap::class,
\Dissonance\SimpleCacheFilesystem\Bootstrap::class,
\Dissonance\Packages\PackagesLoaderFilesystemBootstrap::class,
\Dissonance\Packages\PackagesBootstrap::class,
\Dissonance\Packages\ResourcesBootstrap::class,
\Dissonance\Apps\Bootstrap::class,
\Dissonance\Http\Bootstrap::class,
\Dissonance\Http\Kernel\Bootstrap::class,
\Dissonance\View\Blade\Bootstrap::class,
],
'providers' => [
\Dissonance\Http\Cookie\CookiesProvider::class,
\Dissonance\Routing\SettlementsRoutingProvider::class,
\Dissonance\Session\NativeProvider::class,
],
];

// Базовая постройка контейнера
$core = new \Dissonance\Core($config);
$core = new \Dissonance\Core\Core($config);
// Или через билдер с кешем
$cache = new Dissonance\SimpleCacheFilesystem\SimpleCache($basePath . '/storage/cache/core');
$core = (new \Dissonance\CachedContainer\ContainerBuilder($cache))
$core = (new \Dissonance\Core\ContainerBuilder($cache))
->buildCore($config);

// Запуск
Expand Down

0 comments on commit 1c05c25

Please sign in to comment.