Skip to content

Commit

Permalink
Deprecate unused WebsiteArticleController::getTemplateAttributeResolv…
Browse files Browse the repository at this point in the history
…er method (#544)
  • Loading branch information
niklasnatter authored Jan 25, 2021
1 parent 457dc01 commit de6290b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Controller/WebsiteArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,13 @@ protected function getTwig(): Environment
return $this->container->get('twig');
}

/**
* @deprecated
*/
protected function getTemplateAttributeResolver(): TemplateAttributeResolverInterface
{
@\trigger_error(__METHOD__ . '() is deprecated since version 2.2 and will be removed in 3.0. If you need the service, you can inject it by yourself instead.', \E_USER_DEPRECATED);

return $this->container->get('sulu_website.resolver.template_attribute');
}

Expand Down

0 comments on commit de6290b

Please sign in to comment.