MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/help.cafsindia.com/vendor/uvdesk/core-framework/Dashboard/DashboardTemplate.php
<?php

namespace Webkul\UVDesk\CoreFrameworkBundle\Dashboard;

use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Webkul\UVDesk\CoreFrameworkBundle\Framework\ExtendableComponentInterface;
use Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments\StylesheetResourceInterface;
use Webkul\UVDesk\CoreFrameworkBundle\Dashboard\Segments\JavascriptResourceInterface;

class DashboardTemplate implements ExtendableComponentInterface
{
    private $scripts = [];
    private $stylesheets = [];

	public function __construct(ContainerInterface $container, RequestStack $requestStack, RouterInterface $router)
	{
		$this->router = $router;
		$this->container = $container;
		$this->requestStack = $requestStack;
    }
    
    public function appendJavascript($javascript, $tags = [])
	{
		$this->scripts[] = $javascript;
    }

    public function getJavascriptResources()
    {
        return $this->scripts;
    }

	public function appendStylesheet($stylesheet, $tags = [])
	{
		$this->stylesheets[] = $stylesheet;
    }

    public function getStylesheetResources()
    {
        return $this->stylesheets;
    }
}