| @@ 30-42 (lines=13) @@ | ||
| 27 | { |
|
| 28 | protected $authorMediaManager; |
|
| 29 | ||
| 30 | public function __construct( |
|
| 31 | ContainerInterface $container, |
|
| 32 | $resource, |
|
| 33 | array $options = [], |
|
| 34 | RequestContext $context = null, |
|
| 35 | ContainerInterface $parameters = null, |
|
| 36 | LoggerInterface $logger = null, |
|
| 37 | string $defaultLocale = null |
|
| 38 | ) { |
|
| 39 | $this->authorMediaManager = $container->get('swp_core_bundle.manager.author_media'); |
|
| 40 | ||
| 41 | parent::__construct($container, $resource, $options, $context, $parameters, $logger, $defaultLocale); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function generate($meta, $parameters = [], $referenceType = UrlGeneratorInterface::ABSOLUTE_PATH) |
|
| 45 | { |
|
| @@ 33-45 (lines=13) @@ | ||
| 30 | */ |
|
| 31 | private $tenantContext; |
|
| 32 | ||
| 33 | public function __construct( |
|
| 34 | ContainerInterface $container, |
|
| 35 | $resource, |
|
| 36 | array $options = [], |
|
| 37 | RequestContext $context = null, |
|
| 38 | ContainerInterface $parameters = null, |
|
| 39 | LoggerInterface $logger = null, |
|
| 40 | string $defaultLocale = null |
|
| 41 | ) { |
|
| 42 | $this->tenantContext = $container->get('swp_multi_tenancy.tenant_context'); |
|
| 43 | ||
| 44 | parent::__construct($container, $resource, $options, $context, $parameters, $logger, $defaultLocale); |
|
| 45 | } |
|
| 46 | ||
| 47 | /** |
|
| 48 | * {@inheritdoc} |
|