-
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 details: (e0a523b) Move the polling type constant to the provisionsers themselves. by Jelle Sebreghts on Wed Sep 12 16:46:33 2018 (b6e03a6) Fix use statements. by Jelle Sebreghts on Tue Sep 11 15:56:02 2018 (5940669) Codeclimate fixes. by Jelle Sebreghts on Mon Sep 10 15:03:23 2018 (617b6f8) Try to fix travis, add PHP 7.2 to tests. by Jelle Sebreghts on Mon Sep 10 14:55:53 2018 (d6865e2) Split provisioners. by Jelle Sebreghts on Mon Sep 10 14:36:04 2018
- 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.