You are here

public function CompositeFactory::factory in AmazonS3 7.2

File

src/CompositeFactory.php, line 21

Class

CompositeFactory
Override CompositeFactory to inject hook calls.

Namespace

Drupal\amazons3

Code

public function factory($name, array $args = array()) {
  $args = array_merge($args, $this
    ->module_invoke_all('amazons3_command_prepare', $name, $args));
  $this
    ->drupal_alter('amazons3_command_prepare', $name, $args);
  $command = parent::factory($name, $args);
  $this
    ->drupal_alter('amazons3_command', $command);
  return $command;
}