mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2025-12-06 13:38:53 +08:00
Fix styling
This commit is contained in:
committed by
github-actions[bot]
parent
1b7c272eb7
commit
2bd9cd6ffd
@@ -60,25 +60,25 @@ class SkeletonServiceProvider extends PackageServiceProvider
|
|||||||
|
|
||||||
public function packageRegistered(): void
|
public function packageRegistered(): void
|
||||||
{
|
{
|
||||||
// Facade Registration
|
// Facade Registration
|
||||||
$this->app->bind('skeleton', function (): Skeleton {
|
$this->app->bind('skeleton', function (): Skeleton {
|
||||||
return new Skeleton();
|
return new Skeleton();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Context Registration
|
// Context Registration
|
||||||
$this->app->resolving('skeleton', function () {
|
$this->app->resolving('skeleton', function () {
|
||||||
foreach ($this->getContexts() as $context) {
|
foreach ($this->getContexts() as $context) {
|
||||||
Filament::registerContext($context);
|
Filament::registerContext($context);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Asset Registration
|
// Asset Registration
|
||||||
$this->app->resolving(AssetManager::class, function () {
|
$this->app->resolving(AssetManager::class, function () {
|
||||||
FilamentAsset::register($this->getAssets(), $this->getAssetPackage());
|
FilamentAsset::register($this->getAssets(), $this->getAssetPackage());
|
||||||
FilamentAsset::registerScriptData($this->getScriptData(), $this->getAssetPackage());
|
FilamentAsset::registerScriptData($this->getScriptData(), $this->getAssetPackage());
|
||||||
});
|
});
|
||||||
|
|
||||||
// Icon Registration
|
// Icon Registration
|
||||||
$this->app->resolving(IconManager::class, function () {
|
$this->app->resolving(IconManager::class, function () {
|
||||||
FilamentIcon::register($this->getIcons());
|
FilamentIcon::register($this->getIcons());
|
||||||
});
|
});
|
||||||
@@ -88,7 +88,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
|
|||||||
{
|
{
|
||||||
$this->registerMacros();
|
$this->registerMacros();
|
||||||
|
|
||||||
// Handle Stubs
|
// Handle Stubs
|
||||||
if ($this->app->runningInConsole()) {
|
if ($this->app->runningInConsole()) {
|
||||||
foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) {
|
foreach (app(Filesystem::class)->files(__DIR__.'/../stubs/') as $file) {
|
||||||
$this->publishes([
|
$this->publishes([
|
||||||
@@ -97,7 +97,7 @@ class SkeletonServiceProvider extends PackageServiceProvider
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Testing
|
// Testing
|
||||||
TestableLivewire::mixin(new TestsSkeleton());
|
TestableLivewire::mixin(new TestsSkeleton());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user