Skip to content

Commit

Permalink
Run simplesaml config command on all composer calls. (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpagini authored and ba66e77 committed Sep 9, 2018
1 parent c7fd89c commit f3e9a21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions src/Robo/Commands/Saml/SimpleSamlPhpCommand.php
Expand Up @@ -193,6 +193,17 @@ public function simpleSamlPhpBuildConfig() {
}
}

/**
* Ensures SimpleSamlPhp enabled repos have config copied on composer runs.
*
* @hook post-command source:build:composer
*/
public function postComposerHook() {
if ($this->getConfig()->has('simplesamlphp') && $this->getConfigValue('simplesamlphp')) {
$this->invokeCommand('source:build:simplesamlphp-config');
}
}

/**
* Outputs a message to edit the new config files.
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Robo/Commands/Setup/BuildCommand.php
Expand Up @@ -90,10 +90,6 @@ public function build() {
'source:build:frontend',
]);

if ($this->getConfig()->has('simplesamlphp') && $this->getConfigValue('simplesamlphp')) {
$this->invokeCommand('source:build:simplesamlphp-config');
}

$this->invokeHook("post-setup-build");
}

Expand Down

0 comments on commit f3e9a21

Please sign in to comment.