<?php

$path = dirname(__DIR__, 2);

return [
    'lean.api' => [
        'picea' => [
            'context' => Lean\Api\View::class,

            'view' => [
                [
                    'path' => implode(DIRECTORY_SEPARATOR, [ $path , "view", '' ]),
                    'order' => 99,
                ],
            ],

            'asset' => [
                [
                    'path' => implode(DIRECTORY_SEPARATOR, [ $path, "asset", '' ]),
                    'order' => 10
                ],
            ],
        ],

        'tell' => [
            'json' => [
                [
                    'path' => implode(DIRECTORY_SEPARATOR, [ $path, "meta", "i18n", "" ]),
                    'order' => 99,
                ],
            ]
        ],

        /*'routes' => [
            'Lean\\Api\\Controller' => implode(DIRECTORY_SEPARATOR, [ $path, "src", "Controller", "" ]),
        ],*/
    ],

    \Lean\Api\Factory\MessageFactoryInterface::class => DI\autowire(\Lean\Lib\Message::class),
];