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 CommentBundle\Event; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\FormEvent; | |
class CommentFormSubscriber implements EventSubscriberInterface | |
{ | |
public function form(FormEvent $event) |
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
PhpSpec\CodeGenerator\GeneratorManager | |
13 ✔ uses registered generators to generate code (53ms) | |
25 ✔ chooses generator by priority | |
44 ✔ throws exception if no generator found | |
PhpSpec\CodeGenerator\Generator\ClassGenerator | |
20 ✔ is a generator |
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
diff --git a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php | |
index 137f2fc..dbc0a27 100644 | |
--- a/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php | |
+++ b/src/Symfony/Component/Serializer/Encoder/XmlEncoder.php | |
@@ -76,6 +76,10 @@ class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, Dec | |
libxml_use_internal_errors($internalErrors); | |
libxml_disable_entity_loader($disableEntities); | |
+ if ($error = libxml_get_last_error()) { | |
+ throw new UnexpectedValueException($error->message); |
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 Acme\DemoBundle\Form; | |
use Symfony\Component\Form\AbstractTypeExtension; | |
use Symfony\Component\Form\FormBuilderInterface; | |
class ExtraKeysExtension extends AbstractTypeExtension | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) |
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 Modules] | |
bcmath | |
calendar | |
Core | |
ctype | |
curl | |
date | |
dom | |
ereg | |
fileinfo |
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
[ | |
{ | |
"id": 4202, | |
"slug": "Behat/Behat", | |
"description": "BDD framework for PHP 5.3+", | |
"last_build_id": 34174174, | |
"last_build_number": "1061", | |
"last_build_status": 0, | |
"last_build_result": 0, |
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 Incenteev\WebBundle\Validator; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* @Annotation | |
* @Target({"CLASS", "ANNOTATION"}) | |
*/ |
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\Hook\Scope\BeforeScenarioScope; | |
class FeatureContext implements Context { | |
private $subContext; | |
/** @BeforeScenario */ | |
public function gatherContexts(BeforeScenarioScope $scope) |
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
# Remove old data | |
curl -XDELETE "http://localhost:9200/test" | |
# Create index with settings | |
curl -XPOST "http://localhost:9200/test" -d ' | |
{ | |
"settings": { | |
"index": { | |
"analysis": { | |
"analyzer": { |
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
Feature: SSL encryption | |
PHP Driver supports SSL encryption. | |
Scenario: Connecting with basic SSL encryption # features/ssl_encryption.feature:26 | |
php-driver | [ERROR] Connect error 'connection refused' on host 127.0.0.1 (src/connection.cpp:407) | |
php-driver | [ERROR] Host 127.0.0.1 had the following error on startup: 'Unable to connect' (src/connection.cpp:643) | |
php-driver | [WARN] Lost connection on host 127.0.0.1 (src/control_connection.cpp:208) | |
php-driver | [ERROR] Connect error 'connection refused' on host 127.0.0.1 (src/connection.cpp:407) | |
php-driver | [ERROR] Host 127.0.0.1 had the following error on startup: 'Unable to connect' (src/connection.cpp:643) |