diff --git a/src/Asset.php b/src/Asset.php index f0315c18ec11152ec7d8bdddb68fb137f9379f7f..bf587f3460c9e7ca8e3c4993712ae8d683ba49ef 100644 --- a/src/Asset.php +++ b/src/Asset.php @@ -15,15 +15,11 @@ use Drupal\component_library\Entity\ComponentLibraryAsset; */ class Asset { - private FileSystemInterface $fileSystem; - private ConfigFactoryInterface $configFactory; - private LibraryDiscoveryInterface $libraryDiscovery; - - public function __construct(FileSystemInterface $file_system, LibraryDiscoveryInterface $library_discovery, ConfigFactoryInterface $config_factory) { - $this->fileSystem = $file_system; - $this->configFactory = $config_factory; - $this->libraryDiscovery = $library_discovery; - } + public function __construct( + protected FileSystemInterface $fileSystem, + protected LibraryDiscoveryInterface $libraryDiscovery, + protected ConfigFactoryInterface $configFactory, + ) {} /** * Generate library files.