mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 05:54:32 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -32,26 +32,12 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
|||
|
||||
class AttachmentURLGenerator
|
||||
{
|
||||
protected Packages $assets;
|
||||
protected string $public_path;
|
||||
protected AttachmentPathResolver $pathResolver;
|
||||
protected UrlGeneratorInterface $urlGenerator;
|
||||
protected AttachmentManager $attachmentHelper;
|
||||
protected CacheManager $thumbnailManager;
|
||||
|
||||
protected LoggerInterface $logger;
|
||||
|
||||
public function __construct(Packages $assets, AttachmentPathResolver $pathResolver,
|
||||
UrlGeneratorInterface $urlGenerator, AttachmentManager $attachmentHelper,
|
||||
CacheManager $thumbnailManager, LoggerInterface $logger)
|
||||
public function __construct(protected Packages $assets, protected AttachmentPathResolver $pathResolver,
|
||||
protected UrlGeneratorInterface $urlGenerator, protected AttachmentManager $attachmentHelper,
|
||||
protected CacheManager $thumbnailManager, protected LoggerInterface $logger)
|
||||
{
|
||||
$this->assets = $assets;
|
||||
$this->pathResolver = $pathResolver;
|
||||
$this->urlGenerator = $urlGenerator;
|
||||
$this->attachmentHelper = $attachmentHelper;
|
||||
$this->thumbnailManager = $thumbnailManager;
|
||||
$this->logger = $logger;
|
||||
|
||||
//Determine a normalized path to the public folder (assets are relative to this folder)
|
||||
$this->public_path = $this->pathResolver->parameterToAbsolutePath('public');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue