<?php

namespace Modules\Common\Providers;

use Catch\Providers\CatchModuleServiceProvider;
use Modules\Common\Support\Trace\TraceContext;

class CommonServiceProvider extends CatchModuleServiceProvider
{
    /**
     * route path
     *
     * @return string|array
     */
    public function moduleName(): string|array
    {
        // TODO: Implement path() method.
        return 'common';
    }

    public function register(): void
    {
        parent::register(); // TODO: Change the autogenerated stub
        $this->app->singleton(TraceContext::class, function () {
            return new TraceContext();
        });
    }
}
