-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To be more consistent.
- Loading branch information
Showing
67 changed files
with
588 additions
and
406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Core; | ||
|
||
use Illuminate\Container\Container; | ||
use Illuminate\Contracts\Config\Repository; | ||
use Illuminate\Contracts\Foundation\Application; | ||
use Illuminate\Support\ServiceProvider; | ||
use LastDragon_ru\LaraASP\Core\Application\ApplicationResolver; | ||
use LastDragon_ru\LaraASP\Core\Application\ConfigResolver; | ||
use LastDragon_ru\LaraASP\Core\Application\ContainerResolver; | ||
use Override; | ||
|
||
class PackageProvider extends ServiceProvider { | ||
#[Override] | ||
public function register(): void { | ||
parent::register(); | ||
|
||
$this->registerResolvers(); | ||
} | ||
|
||
protected function registerResolvers(): void { | ||
$this->app->singletonIf(ContainerResolver::class, static function (): ContainerResolver { | ||
return new ContainerResolver(static fn () => Container::getInstance()); | ||
}); | ||
$this->app->singletonIf(ApplicationResolver::class, static function (): ApplicationResolver { | ||
return new ApplicationResolver(static fn () => Container::getInstance()->make(Application::class)); | ||
}); | ||
$this->app->singletonIf(ConfigResolver::class, static function (): ConfigResolver { | ||
return new ConfigResolver(static fn () => Container::getInstance()->make(Repository::class)); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Dev; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use LastDragon_ru\LaraASP\Dev\App\Example; | ||
use LastDragon_ru\LaraASP\Documentator\Processor\Tasks\Preprocess\Instructions\IncludeExample\Contracts\Runner; | ||
use Override; | ||
|
||
class PackageProvider extends ServiceProvider { | ||
#[Override] | ||
public function register(): void { | ||
parent::register(); | ||
|
||
$this->app->bind(Runner::class, Example::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use LastDragon_ru\LaraASP\Core\Provider\WithViews; | ||
use LastDragon_ru\LaraASP\Documentator\Commands\Commands; | ||
use LastDragon_ru\LaraASP\Documentator\Commands\Preprocess; | ||
use LastDragon_ru\LaraASP\Documentator\Commands\Requirements; | ||
use LastDragon_ru\LaraASP\Documentator\Processor\Contracts\Factory as ProcessorFactoryContract; | ||
use LastDragon_ru\LaraASP\Documentator\Processor\Factory as ProcessorFactory; | ||
use LastDragon_ru\LaraASP\Documentator\Processor\Tasks\CodeLinks\Contracts\LinkFactory as LinkFactoryContract; | ||
use LastDragon_ru\LaraASP\Documentator\Processor\Tasks\CodeLinks\Links\Factory as LinkFactory; | ||
use Override; | ||
|
||
class PackageProvider extends ServiceProvider { | ||
use WithViews; | ||
|
||
#[Override] | ||
public function register(): void { | ||
parent::register(); | ||
|
||
$this->app->scopedIf(ProcessorFactoryContract::class, ProcessorFactory::class); | ||
$this->app->scopedIf(LinkFactoryContract::class, LinkFactory::class); | ||
} | ||
|
||
public function boot(): void { | ||
$this->bootViews(); | ||
$this->commands( | ||
Requirements::class, | ||
Preprocess::class, | ||
Commands::class, | ||
); | ||
} | ||
|
||
#[Override] | ||
protected function getName(): string { | ||
return Package::Name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Eloquent; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
||
class PackageProvider extends ServiceProvider { | ||
// empty | ||
} |
Oops, something went wrong.