vendor/uvdesk/core-framework/Dashboard/DashboardTemplate.php line 17

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Dashboard;
  3. use Symfony\Component\Routing\RouterInterface;
  4. use Symfony\Component\HttpFoundation\RequestStack;
  5. use Symfony\Component\DependencyInjection\ContainerInterface;
  6. use Webkul\UVDesk\CoreFrameworkBundle\Framework\ExtendableComponentInterface;
  7. class DashboardTemplate implements ExtendableComponentInterface
  8. {
  9. private $scripts = [];
  10. private $stylesheets = [];
  11. public function __construct(ContainerInterface $container, RequestStack $requestStack, RouterInterface $router)
  12. {
  13. $this->router = $router;
  14. $this->container = $container;
  15. $this->requestStack = $requestStack;
  16. }
  17. public function appendJavascript($javascript, $tags = [])
  18. {
  19. $this->scripts[] = $javascript;
  20. }
  21. public function getJavascriptResources()
  22. {
  23. return $this->scripts;
  24. }
  25. public function appendStylesheet($stylesheet, $tags = [])
  26. {
  27. $this->stylesheets[] = $stylesheet;
  28. }
  29. public function getStylesheetResources()
  30. {
  31. return $this->stylesheets;
  32. }
  33. }