fromDirectory($this->argument('path')); $compatibility->assertCompatible($manifest, $extensions->configuredEnabled()); $compatibility->assertMigrationsAreUnique($manifest, $extensions->discovered()); throw_if($reason = $assets->unusableBuildReason($manifest), InvalidExtensionException::class, $reason); foreach ($manifest->autoload as $directory) { throw_unless(is_dir($manifest->path($directory)), InvalidExtensionException::class, "Autoload directory \"{$directory}\" is missing."); } } catch (InvalidExtensionException $invalidExtensionException) { $this->components->error($invalidExtensionException->getMessage()); return self::FAILURE; } foreach ($icons->unknownIcons($manifest) as $icon) { $this->components->warn("Icon \"{$icon}\" is not a lucide icon this panel ships; the default icon is shown instead."); } if (($problem = $assets->iconProblem($manifest)) !== null) { $this->components->warn($problem.' The extension list shows its initials instead.'); } foreach ($composer->warnings($manifest) as $warning) { $this->components->warn($warning); } $this->components->info("{$manifest->id} v{$manifest->version}: manifest, compatibility, autoload directories, and build passed."); return self::SUCCESS; } }