Skip to content

Commit 455ca59

Browse files
committed
Add isDeprecated property on UxPackage
1 parent 01adc3b commit 455ca59

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

ux.symfony.com/src/Model/UxPackage.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function __construct(
3030
private ?string $imageFileName = null,
3131
private ?string $composerName = null,
3232
private bool $isDevDependency = false,
33+
private bool $isDeprecated = false,
3334
) {
3435
}
3536

@@ -151,4 +152,9 @@ public function getImage(?string $format = null): string
151152
{
152153
return 'images/ux_packages/'.$this->getImageFilename($format);
153154
}
155+
156+
public function isDeprecated(): bool
157+
{
158+
return $this->isDeprecated;
159+
}
154160
}

ux.symfony.com/src/Service/UxPackageRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public function findAll(?string $query = null): array
208208
'linear-gradient(95deg, #D87036 -5%, #EA9633 105%)',
209209
'Stylized Page Transitions',
210210
'Integration with the page transition library Swup',
211+
isDeprecated: true,
211212
))
212213
->setDocsLink('https://swup.js.org/', 'Swup documentation'),
213214

0 commit comments

Comments
 (0)