Loading INSTALL.md +6 −3 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ module should not be used on production sites. Required. ```php // Origin - no trailing slash. $config['stage_file_proxy.settings']['origin'] = 'http://example.com'; // no trailing slash $config['stage_file_proxy.settings']['origin'] = 'http://example.com'; // no trailing slash ``` Drush variable set: ```bash Loading @@ -40,11 +41,13 @@ special characters. For example, setting a user name of "myusername" and password as, "letme&in" the configuration would be the following: ```php $config['stage_file_proxy.settings']['origin'] = 'http://myusername:letme%26in@example.com'; $config['stage_file_proxy.settings']['origin'] = 'http://myusername:letme%26in@example.com'; ``` Drush variable set: ```bash drush config-set stage_file_proxy.settings origin http://myusername:letme%26in@example.com drush config-set stage_file_proxy.settings origin http://myusername:letme%26in@example.com ``` ### SSL verification Loading src/Controller/ImageStyleDownloadController.php +5 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,11 @@ use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException; */ final class ImageStyleDownloadController implements ContainerInjectionInterface { /** * The decorated used to decorate the images. * * @var \Drupal\image\Controller\ImageStyleDownloadController */ private CoreImageStyleDownloadController $decorated; /** Loading src/EventDispatcher/AlterExcludedPathsEvent.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\stage_file_proxy\EventDispatcher; use Symfony\Contracts\EventDispatcher\Event; /** * Class AlterExcludedPathsEvent. * Class of AlterExcludedPathsEvent. * * @package Drupal\stage_file_proxy\EventDispatcher */ Loading src/EventSubscriber/ImageDownloadControllerSubscriber.php +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ class ImageDownloadControllerSubscriber implements EventSubscriberInterface { * * @param \Drupal\Core\Routing\RouteBuildEvent $event * The event containing the route being built. * * @return void */ public function onAlterDecorateController(RouteBuildEvent $event): void { $to_alter = [ Loading src/EventSubscriber/ProxySubscriber.php +0 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,6 @@ class ProxySubscriber implements EventSubscriberInterface { $paths = [$relative_path]; // Webp support. $is_webp = FALSE; if (str_ends_with($relative_path, '.webp')) { $paths[] = str_replace('.webp', '', $relative_path); } Loading Loading
INSTALL.md +6 −3 Original line number Diff line number Diff line Loading @@ -27,7 +27,8 @@ module should not be used on production sites. Required. ```php // Origin - no trailing slash. $config['stage_file_proxy.settings']['origin'] = 'http://example.com'; // no trailing slash $config['stage_file_proxy.settings']['origin'] = 'http://example.com'; // no trailing slash ``` Drush variable set: ```bash Loading @@ -40,11 +41,13 @@ special characters. For example, setting a user name of "myusername" and password as, "letme&in" the configuration would be the following: ```php $config['stage_file_proxy.settings']['origin'] = 'http://myusername:letme%26in@example.com'; $config['stage_file_proxy.settings']['origin'] = 'http://myusername:letme%26in@example.com'; ``` Drush variable set: ```bash drush config-set stage_file_proxy.settings origin http://myusername:letme%26in@example.com drush config-set stage_file_proxy.settings origin http://myusername:letme%26in@example.com ``` ### SSL verification Loading
src/Controller/ImageStyleDownloadController.php +5 −0 Original line number Diff line number Diff line Loading @@ -20,6 +20,11 @@ use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException; */ final class ImageStyleDownloadController implements ContainerInjectionInterface { /** * The decorated used to decorate the images. * * @var \Drupal\image\Controller\ImageStyleDownloadController */ private CoreImageStyleDownloadController $decorated; /** Loading
src/EventDispatcher/AlterExcludedPathsEvent.php +1 −1 Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ namespace Drupal\stage_file_proxy\EventDispatcher; use Symfony\Contracts\EventDispatcher\Event; /** * Class AlterExcludedPathsEvent. * Class of AlterExcludedPathsEvent. * * @package Drupal\stage_file_proxy\EventDispatcher */ Loading
src/EventSubscriber/ImageDownloadControllerSubscriber.php +0 −2 Original line number Diff line number Diff line Loading @@ -19,8 +19,6 @@ class ImageDownloadControllerSubscriber implements EventSubscriberInterface { * * @param \Drupal\Core\Routing\RouteBuildEvent $event * The event containing the route being built. * * @return void */ public function onAlterDecorateController(RouteBuildEvent $event): void { $to_alter = [ Loading
src/EventSubscriber/ProxySubscriber.php +0 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,6 @@ class ProxySubscriber implements EventSubscriberInterface { $paths = [$relative_path]; // Webp support. $is_webp = FALSE; if (str_ends_with($relative_path, '.webp')) { $paths[] = str_replace('.webp', '', $relative_path); } Loading