Skip to content

Commit

Permalink
Run simplesaml config command on all composer calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpagini committed Sep 7, 2018
1 parent 255ad26 commit 692fde2
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 692fde2

Please sign in to comment.