39 lines
908 B
PHP
39 lines
908 B
PHP
<?php
|
|
|
|
use Lean\Live\Live;
|
|
|
|
use function DI\autowire;
|
|
|
|
putenv('LEAN_API_PROJECT_PATH=' . $path = dirname(__DIR__, 2));
|
|
|
|
return [
|
|
'lean.live' => [
|
|
'picea' => [
|
|
'context' => Lean\Live\View::class,
|
|
|
|
'view' => [
|
|
[
|
|
'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
|
|
'order' => 99,
|
|
],
|
|
],
|
|
|
|
'asset' => [
|
|
[
|
|
'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
|
|
'order' => 10
|
|
],
|
|
],
|
|
|
|
'extensions' => [
|
|
\Lean\Live\Picea\Live::class,
|
|
],
|
|
],
|
|
|
|
'routes' => [
|
|
#'Lean\\Live\\Controller' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
|
|
],
|
|
],
|
|
|
|
Live::class => autowire(Live::class),
|
|
]; |