Loading src/Commands/StageFileProxyCommands.php→src/Drush/Commands/StageFileProxyCommands.php +15 −1 Original line number Diff line number Diff line <?php namespace Drupal\stage_file_proxy\Commands; namespace Drupal\stage_file_proxy\Drush\Commands; use Drupal\Component\DependencyInjection\ContainerInterface; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; Loading Loading @@ -71,6 +72,19 @@ class StageFileProxyCommands extends DrushCommands { $this->root = $root; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container): self { return new static( $container->get('config.factory'), $container->get('database'), $container->get('stage_file_proxy.fetch_manager'), '%app.root%', ); } /** * Download all managed files from the origin. * Loading stage_file_proxy.drush.services.yml +1 −1 Original line number Diff line number Diff line services: stage_file_proxy.command: class: Drupal\stage_file_proxy\Commands\StageFileProxyCommands class: Drupal\stage_file_proxy\Drush\Commands\StageFileProxyCommands arguments: - '@config.factory' - '@database' Loading stage_file_proxy.post_update.php 0 → 100644 +13 −0 Original line number Diff line number Diff line <?php /** * @file * Post update functions for Stage File Proxy. */ /** * Move Drush commands to drush folder for 12. */ function stage_file_proxy_post_update_move_drush_folder(): void { // Empty update hook to clear cache. } Loading
src/Commands/StageFileProxyCommands.php→src/Drush/Commands/StageFileProxyCommands.php +15 −1 Original line number Diff line number Diff line <?php namespace Drupal\stage_file_proxy\Commands; namespace Drupal\stage_file_proxy\Drush\Commands; use Drupal\Component\DependencyInjection\ContainerInterface; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; Loading Loading @@ -71,6 +72,19 @@ class StageFileProxyCommands extends DrushCommands { $this->root = $root; } /** * {@inheritdoc} */ public static function create(ContainerInterface $container): self { return new static( $container->get('config.factory'), $container->get('database'), $container->get('stage_file_proxy.fetch_manager'), '%app.root%', ); } /** * Download all managed files from the origin. * Loading
stage_file_proxy.drush.services.yml +1 −1 Original line number Diff line number Diff line services: stage_file_proxy.command: class: Drupal\stage_file_proxy\Commands\StageFileProxyCommands class: Drupal\stage_file_proxy\Drush\Commands\StageFileProxyCommands arguments: - '@config.factory' - '@database' Loading
stage_file_proxy.post_update.php 0 → 100644 +13 −0 Original line number Diff line number Diff line <?php /** * @file * Post update functions for Stage File Proxy. */ /** * Move Drush commands to drush folder for 12. */ function stage_file_proxy_post_update_move_drush_folder(): void { // Empty update hook to clear cache. }