This file contains hidden or 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
include: | |
- php.fpm | |
php_fpm: | |
pkg.installed: [] |
This file contains hidden or 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
db.tracker_lead.aggregate([ | |
{ | |
$group: { | |
_id: { | |
year: { | |
$year: "$created_at" | |
}, | |
month: { | |
$month: "$created_at" | |
}, |
This file contains hidden or 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
if (false === ($socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) { | |
$errorMessages[] = 'socket_create'; | |
$errorMessages[] = socket_strerror(socket_last_error()); | |
$errorCode = 1; | |
} else { | |
$container = $this->getContainer(); | |
if (false === (socket_connect($socket, '174.37.69.2', '443'))) { | |
$errorMessages[] = 'socket_connect'; |
This file contains hidden or 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
protected function execute(InputInterface $input, OutputInterface $output) | |
{ | |
$container = $this->getContainer(); | |
$doctrine = $container->get('doctrine'); | |
$monitoringEntities = $container->getParameter('monitoring.entities'); | |
foreach ($monitoringEntities as $monitoringEntity) { | |
$output->writeln($monitoringEntity); |
This file contains hidden or 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
<?php | |
namespace AppBundle\Service; | |
use Symfony\Component\DependencyInjection\Container; | |
abstract class AbstractService implements SomeInterface { | |
protected $container; | |
public function __construct(Container $container) | |
{ |
This file contains hidden or 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
<?php | |
use Behat\Behat\Context\Context; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
/** | |
* Defines application features from the specific context. | |
*/ |