Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/config/
Upload File :
Current File : //opt/nginxhttpd_/config/services.yaml

# This file is the entry point to configure your own services.
# Files in the packages/ subdirectory configure your dependencies.

# Put parameters here that don't need to change on each machine where the app is deployed
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
    locale: "en"
    # HTTPD configuration
    app.httpd.conf: "%env(resolve:APP_HTTPD_CONF)%"
    app.httpd.lastChanged: "%env(resolve:APP_HTTPD_LAST_CHANGED)%"
    app.httpd.httpsPort: "%env(resolve:APP_HTTPD_HTTPS_PORT)%"
    app.httpd.httpPort: "%env(resolve:APP_HTTPD_HTTP_PORT)%"
    app.httpd.defaultSsl: "%env(resolve:APP_HTTPD_DEFAULT_SSL)%"

    app.lsws.httpd.httpsPort: "%env(APP_LSWS_HTTPS_PORT)%"
    app.lsws.httpd.httpPort: "%env(APP_LSWS_HTTP_PORT)%"
    app.lsws.httpd.apacheHttpsPort: "%env(APP_LSWS_APACHE_HTTPS_PORT)%"
    app.lsws.httpd.apacheHttpPort: "%env(APP_LSWS_APACHE_HTTP_PORT)%"
    app.lsws.httpd.conf: "%env(APP_LSWS_HTTPD_CONF)%"
    app.lsws.root: "%env(APP_LSWS_ROOT)%"

    app.user: '%env(APP_USER)%'
    app.user.password: '%env(APP_USER_PASS)%'

    app.domain.config: '%env(APP_DOMAIN_CONFIG)%'
    app.domain.default: '%env(APP_DOMAIN_DEFAULT)%'

    # Cpanel
    app.cpanel.userdata: "%env(resolve:APP_CPANEL_USERDATA)%"
    # Redis
    app.redis.uri: "%env(resolve:APP_REDIS_URI)%"
    # Openresty
    app.openresty.endpoint: "%env(resolve:APP_OPENRESTY_ENDPOINT)%"
    app.openresty.host: "%env(resolve:APP_OPENRESTY_HOST)%"
    app.openresty.port: "%env(resolve:APP_OPENRESTY_PORT)%"
    app.openresty.user: "%env(resolve:APP_OPENRESTY_USER)%"
    app.openresty.pass: "%env(resolve:APP_OPENRESTY_PASSWORD)%"
    # OpenLitespeed
    app.openlitespeed.disable : "%env(DISABLE_OPEN_LITESPEED)%"
services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
        bind:
            $apacheHttpdConf: '%app.httpd.conf%'
            $lswsHttpdConf: '%app.lsws.httpd.conf%'
            $lswsRoot: '%app.lsws.root%'
            $period: '%app.httpd.lastChanged%'
            $defaultServerMode: '%app.domain.default%'
            $portsConfig:
                apache:
                    http: '%app.httpd.httpPort%'
                    https: '%app.httpd.httpsPort%'
                lsws-apache:
                    http: '%app.lsws.httpd.apacheHttpPort%'
                    https: '%app.lsws.httpd.apacheHttpsPort%'
                lsws:
                    http: '%app.lsws.httpd.httpPort%'
                    https: '%app.lsws.httpd.httpsPort%'
            $disableOpenLitespeed: '%app.openlitespeed.disable%'

    # makes classes in src/ available to be used as services
    # this creates a service per class whose id is the fully-qualified class name
    App\:
        resource: '../src/'
        exclude:
            - '../src/DependencyInjection/'
            - '../src/Entity/'
            - '../src/Kernel.php'
            - '../src/Tests/'

    # add more service definitions when explicit configuration is needed
    # please note that last definitions always *replace* previous ones
    O2switch\CpanelLib\Client\OpenrestyInternalApi:
        arguments:
            $config:
                host: '%app.openresty.host%'
                port: '%app.openresty.port%'
                user: '%app.openresty.user%'
                pass: '%app.openresty.pass%'
    App\Processor\OpenrestyProcessor:
        arguments:
            $period: '%app.httpd.lastChanged%'
            $cpUserdataDir: '%app.cpanel.userdata%'
    App\DataTransformer\Enrich:
        arguments:
            $httpdDefaultSsl: '%app.httpd.defaultSsl%'
    Predis\Client:
        arguments:
            $parameters: '%app.redis.uri%'
    Predis\ClientInterface: '@Predis\Client'
    App\Parser\CpanelUserdataParser:
        arguments:
            $cpUserdataPath: '%app.cpanel.userdata%'
    App\Parser\ApacheHttpdParser:
        arguments:
            $httpPort: '%app.httpd.httpPort%'
            $httpsPort: '%app.httpd.httpsPort%'
    App\Parser\ServerModeParser:
        arguments:
            $configTypeSelectorFile: '%app.domain.config%'
    Twig\Loader\LoaderInterface:
        class: Twig\Loader\FilesystemLoader
        arguments:
            $paths: ['%kernel.project_dir%/template']
    App\Service\Lsws\LswsCommandRunner:
        arguments:
            $user: '%app.user%'
            $pass: '%app.user.password%'
    App\Parser\LswsHttpdParser:
        arguments:
            $apacheHttpPort: '%app.lsws.httpd.apacheHttpPort%'
            $apacheHttpsPort: '%app.lsws.httpd.apacheHttpsPort%'
            $httpPort: '%app.lsws.httpd.httpPort%'
            $httpsPort: '%app.lsws.httpd.httpsPort%'
    Symfony\Component\Filesystem\Filesystem:
        class: Symfony\Component\Filesystem\Filesystem

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists