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 | |
// ... | |
class SessionStorageChain implements \SessionHandlerInterface | |
{ | |
private $readStorageChain; | |
private $writeStorageChain; | |
private $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 | |
// This is just copy pasted in here. | |
class Controller { | |
public function getMemberAction($memberId) | |
{ | |
$country = $this->getDoctrine()->getRepository('HautelookApiBundle:Countries')->find('US'); | |
$serializedCountry = $this->get('serializer')->serialize($country, 'json'); |
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/.puppet/modules/hautelook/manifests/init.pp b/.puppet/modules/hautelook/manifests/init.pp | |
index 19b88fd..46fadb1 100644 | |
--- a/.puppet/modules/hautelook/manifests/init.pp | |
+++ b/.puppet/modules/hautelook/manifests/init.pp | |
@@ -69,6 +69,21 @@ class hautelook { | |
require => Package["memcached"] | |
} | |
+ package { "mysql-server": | |
+ ensure => 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
<?php | |
namespace Acme\DemoBundle\DataFixtures\ORM; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Acme\DemoBundle\Entity\Product; | |
/** |
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
<service id="rest.security.authentication.listener" class="Acme\TestBundle\Security\Firewall\RestListener" public="false"> | |
<argument type="service" id="security.context"/> | |
<argument type="service" id="security.authentication.manager" /> | |
<argument type="service" id="doctrine"/> | |
<argument type="service" id="event_dispatcher" /> | |
<argument type="service" id="security.authentication.success_handler" /> | |
</service> |
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\Security\Service; | |
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface; | |
use Hautelook\Phpass\PasswordHash; | |
/** | |
* A password encoder that uses Phpass for encoding |
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 Hautelook\ApiBundle\Serializer\Handler; | |
use JMS\SerializerBundle\Serializer\Exclusion\ExclusionStrategyInterface; | |
use JMS\SerializerBundle\Metadata\ClassMetadata; | |
use JMS\SerializerBundle\Metadata\PropertyMetadata; | |
class HautelookDoctrineExclusionStrategy implements ExclusionStrategyInterface | |
{ |
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
service1: | |
- option1 | |
service2: | |
- option2 | |
# I basically want to get this as 'approximately' | |
array('service1' => array('option1'), 'service2' => array('option2')) |
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 Hautelook\ApiBundle\DependencyInjection; | |
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
use Symfony\Component\Config\Definition\ConfigurationInterface; | |
/** | |
* This is the class that validates and merges configuration from your app/config files | |
* |
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 Gregwar\CaptchaBundle\DependencyInjection; | |
use Symfony\Component\Config\Definition\Builder\TreeBuilder; | |
use Symfony\Component\Config\Definition\ConfigurationInterface; | |
class Configuration implements ConfigurationInterface | |
{ | |
/** |