Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20821

Make it possible to configure the front controller without editing it

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: None
    • Icon: High High
    • 5.2-alpha1
    • 5.0, 5.1
    • None
    • None

    Description

      We currently provide two different front controllers: index.php and index_dev.php, however, those requires some editing for fine tuning.
      It is normally possible to get rid of those files while having only one.

      Environment variable would be used to configure front controller's behaviour, example:

      # Environment.
      # Possible values: "prod", "dev" or custom value
      # In case of custom value ezpublish/config/config_<env>.yml &
      # ezpublish/config/ezpublish_<env>.yml needs to be created.
      # Defaults to "prod" if omitted
      SetEnv ENVIRONMENT "prod"
      
      # Whether to use Symfony's ApcClassLoader.
      # Possible values: 0 or 1
      # Defaults to 0 if omitted
      #SetEnv USE_APC_CLASSLOADER 0
      
      # Prefix used when USE_APC_CLASSLOADER is set to 1.
      # Use a unique prefix in order to prevent cache key conflicts
      # with other applications also using APC.
      # Defaults to "ezpublish" if omitted
      #SetEnv APC_CLASSLOADER_PREFIX "ezpublish"
      
      # Whether to use debugging.
      # Possible values: 0 or 1
      # Defaults to 0 if omitted, unless ENVIRONMENT is set to: "dev"
      #SetEnv USE_DEBUGGING 1
      
      # Whether to use Symfony's HTTP Caching.
      # Disable it if you are using an external reverse proxy (e.g. Varnish)
      # Possible values: 0 or 1
      # Defaults to 1 if omitted, unless ENVIRONMENT is set to: "dev"
      #SetEnv USE_HTTP_CACHE 0
      
      # Whether to perform the `Request::trustProxyData()`.
      # Set to 1 if your application is behind a reverse proxy you manage and trust.
      # Possible values: 0 or 1
      # Defaults to 0 if omitted
      #SetEnv TRUST_PROXY_DATA 0
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            patrick.allaert-obsolete@ez.no Patrick Allaert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 7 hours, 10 minutes
                2d 7h 10m