-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from digipolisgent/feature/split-provisioners
Split provisioners.
- Loading branch information
Showing
23 changed files
with
2,584 additions
and
976 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace DigipolisGent\Domainator9k\SockBundle\Provisioner; | ||
|
||
use DigipolisGent\Domainator9k\CoreBundle\Provisioner\AbstractProvisioner; | ||
|
||
/** | ||
* Class AbstractSockProvisioner | ||
* | ||
* @package DigipolisGent\Domainator9k\SockBundle\Provisioner | ||
*/ | ||
abstract class AbstractSockProvisioner extends AbstractProvisioner | ||
{ | ||
protected function ensurePollingProvisioner() | ||
{ | ||
$provisioners = $this->task->getProvisioners(); | ||
if ($provisioners && !in_array(PollingProvisioner::class, $provisioners)) { | ||
$provisioners[] = PollingProvisioner::class; | ||
$this->task->setProvisioners($provisioners); | ||
} | ||
} | ||
} |
Oops, something went wrong.