Moved attachment related services into their own namespaces

This commit is contained in:
Jan Böhmer 2019-10-19 23:29:51 +02:00
parent f5f581293a
commit c955a3a221
16 changed files with 33 additions and 33 deletions

View file

@ -29,7 +29,7 @@
*
*/
namespace App\Services;
namespace App\Services\Attachments;
use App\Entity\Attachments\Attachment;

View file

@ -29,7 +29,7 @@
*
*/
namespace App\Services;
namespace App\Services\Attachments;
use App\Entity\Attachments\Attachment;
use App\Services\Attachments\AttachmentPathResolver;

View file

@ -47,7 +47,7 @@ use App\Entity\Attachments\StorelocationAttachment;
use App\Entity\Attachments\SupplierAttachment;
use App\Entity\Attachments\UserAttachment;
use App\Exceptions\AttachmentDownloadException;
use App\Services\AttachmentHelper;
use App\Services\Attachments\AttachmentManager;
use Doctrine\Common\Annotations\IndexedReader;
use Nyholm\Psr7\Request;
use Symfony\Component\Filesystem\Filesystem;

View file

@ -33,7 +33,7 @@ namespace App\Services\Attachments;
use App\Entity\Attachments\Attachment;
use App\Services\AttachmentHelper;
use App\Services\Attachments\AttachmentManager;
use Liip\ImagineBundle\Service\FilterService;
use Symfony\Component\Asset\Package;
use Symfony\Component\Asset\Packages;
@ -49,7 +49,7 @@ class AttachmentURLGenerator
protected $filterService;
public function __construct(Packages $assets, AttachmentPathResolver $pathResolver,
UrlGeneratorInterface $urlGenerator, AttachmentHelper $attachmentHelper,
UrlGeneratorInterface $urlGenerator, AttachmentManager $attachmentHelper,
FilterService $filterService)
{
$this->assets = $assets;

View file

@ -29,7 +29,7 @@
*
*/
namespace App\Services;
namespace App\Services\Attachments;
use App\Entity\Attachments\Attachment;
use App\Services\Attachments\AttachmentPathResolver;

View file

@ -34,7 +34,7 @@ namespace App\Services\Attachments;
use App\Entity\Attachments\Attachment;
use App\Entity\Parts\Part;
use App\Services\AttachmentHelper;
use App\Services\Attachments\AttachmentManager;
/**
* @package App\Services\Attachments
@ -43,7 +43,7 @@ class PartPreviewGenerator
{
protected $attachmentHelper;
public function __construct(AttachmentHelper $attachmentHelper)
public function __construct(AttachmentManager $attachmentHelper)
{
$this->attachmentHelper = $attachmentHelper;
}