- Convert class references from strings to static ::class constants built-in to PHP for improved code completion and static analysis.

- Replace Facade references using the global namespace with their FQCN for improved code completion and static analysis.
- delete database\factories\PageFactory.php and app\services\Registrar.php
This commit is contained in:
Arno Kaimbacher 2022-08-05 13:26:42 +02:00
parent c4d74ca631
commit 1b2e77d907
12 changed files with 32 additions and 88 deletions

View file

@ -33,7 +33,7 @@ class DoiServiceProvider extends ServiceProvider
public function register()
{
//
$this->app->singleton('App\Interfaces\DoiInterface', function ($app) {
$this->app->singleton(\App\Interfaces\DoiInterface::class, function ($app) {
return new DoiClient();
});
}

View file

@ -11,8 +11,8 @@ class EventServiceProvider extends ServiceProvider
* @var array
*/
protected $listen = [
'App\Events\Event' => [
'App\Listeners\EventListener',
\App\Events\Event::class => [
\App\Listeners\EventListener::class,
],
\App\Events\Dataset\DatasetUpdated::class => [
\App\Listeners\DatasetUpdated::class,