<commit_before><?php

declare(strict_types=1);

namespace Lit\Bolt;

use Lit\Air\Configurator as C;
use Lit\Core\RouterDispatchHandler;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

class RouterConfiguration
{
    public static function default()
    {
        return [
            BoltApp::class => C::produce(null, [
                RequestHandlerInterface::class => C::alias(C::join(BoltApp::class, RouterDispatchHandler::class)),
                MiddlewareInterface::class => C::alias(C::join(BoltApp::class, MiddlewareInterface::class)),
            ]),
            C::join(BoltApp::class, RouterDispatchHandler::class) => C::produce(RouterDispatchHandler::class),
            C::join(BoltApp::class, MiddlewareInterface::class) => null,
        ];
    }
}<commit_msg>let C::alias include join logic<commit_after><?php

declare(strict_types=1);

namespace Lit\Bolt;

use Lit\Air\Configurator as C;
use Lit\Core\RouterDispatchHandler;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;

class RouterConfiguration
{
    public static function default()
    {
        return [
            BoltApp::class => C::produce(null, [
                RequestHandlerInterface::class => C::alias(BoltApp::class, RouterDispatchHandler::class),
                MiddlewareInterface::class => C::alias(BoltApp::class, MiddlewareInterface::class),
            ]),
            C::join(BoltApp::class, RouterDispatchHandler::class) => C::produce(RouterDispatchHandler::class),
            C::join(BoltApp::class, MiddlewareInterface::class) => null,
        ];
    }
}
{'fraction_non_alphanumeric': 0.1339066339066339, 'fraction_numerical': 0.0012285012285012285, 'mean_word_length': 3.7217391304347824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5180647', 'n_tokens_mistral': 473, 'n_tokens_neox': 467, 'n_words': 74}