<commit_before><?php

namespace Madewithlove\LaravelCqrsEs\ReadModel;

use Broadway\ReadModel\RepositoryInterface;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
    /**
     * @var bool
     */
    protected $defer = true;
    
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton(MethodNameInflector::class, ProjectClassNameInflector::class);

        $this->app->singleton('read_model.driver', function () {
            return (new ReadModelManager($this->app))->driver();
        });
    }

    public function provides()
    {
        return [
            'read_model.driver',
            MethodNameInflector::class,
        ];
    }
}<commit_msg>Able to extend read model manager<commit_after><?php

namespace Madewithlove\LaravelCqrsEs\ReadModel;

class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
    /**
     * @var bool
     */
    protected $defer = true;
    
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton(MethodNameInflector::class, ProjectClassNameInflector::class);

        $this->app->singleton('read_model.manager', function () {
            return new ReadModelManager($this->app);
        });

        $this->app->singleton('read_model.driver', function () {
            return $this->app->make('read_model.manager')->driver();
        });
    }

    public function provides()
    {
        return [
            'read_model.driver',
            'read_model.manager',
            MethodNameInflector::class,
        ];
    }
}
{'fraction_non_alphanumeric': 0.12834224598930483, 'fraction_numerical': 0.0, 'mean_word_length': 2.295499021526419, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1191047', 'n_tokens_mistral': 468, 'n_tokens_neox': 471, 'n_words': 80}