diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php deleted file mode 100644 index 4fe8948..0000000 --- a/src/ServiceProvider.php +++ /dev/null @@ -1,86 +0,0 @@ -registerMutator(); - $this->registerJoiner(); - $this->registerParser(); - } - - /** - * Register attribute mutator service. - * - * @return void - */ - protected function registerMutator() - { - $this->app->singleton('eloquence.mutator', function () { - return new Mutator; - }); - - $this->app->alias('eloquence.mutator', 'Sofa\Eloquence\Contracts\Mutator'); - } - - /** - * Register relation joiner factory. - * - * @return void - */ - protected function registerJoiner() - { - $this->app->singleton('eloquence.joiner', function () { - return new JoinerFactory; - }); - - $this->app->alias('eloquence.joiner', 'Sofa\Eloquence\Contracts\Relations\JoinerFactory'); - } - - /** - * Register serachable parser factory. - * - * @return void - */ - protected function registerParser() - { - $this->app->singleton('eloquence.parser', function () { - return new ParserFactory; - }); - - $this->app->alias('eloquence.parser', 'Sofa\Eloquence\Contracts\Relations\ParserFactory'); - } - - /** - * Get the services provided by the provider. - * - * @return array - */ - public function provides() - { - return ['eloquence.mutator', 'eloquence.joiner', 'eloquence.parser']; - } -}