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

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. use Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments\StylesheetResourceInterface;
  8. use Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments\JavascriptResourceInterface;
  9. class DashboardTemplate implements ExtendableComponentInterface
  10. {
  11.     private $scripts = [];
  12.     private $stylesheets = [];
  13.     public function __construct(ContainerInterface $containerRequestStack $requestStackRouterInterface $router)
  14.     {
  15.         $this->router $router;
  16.         $this->container $container;
  17.         $this->requestStack $requestStack;
  18.     }
  19.     
  20.     public function appendJavascript($javascript$tags = [])
  21.     {
  22.         $this->scripts[] = $javascript;
  23.     }
  24.     public function getJavascriptResources()
  25.     {
  26.         return $this->scripts;
  27.     }
  28.     public function appendStylesheet($stylesheet$tags = [])
  29.     {
  30.         $this->stylesheets[] = $stylesheet;
  31.     }
  32.     public function getStylesheetResources()
  33.     {
  34.         return $this->stylesheets;
  35.     }
  36. }