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
# Add the bundle to your composer | |
"a2lix/translation-form-bundle" : "dev-master" | |
# Enable the Bundle in the AppKernel.php | |
new A2lix\TranslationFormBundle\A2lixTranslationFormBundle(), | |
# Configure the Bundle in the config.yml |
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
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev | |
# Don't forget to go to the location you want to install node in (like cd /home/) before running these commands | |
git clone https://github.com/joyent/node.git | |
cd node | |
git checkout v0.8.12 | |
./configure --openssl-libpath=/usr/lib/ssl | |
make | |
make test |
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
// composer.json | |
"require": { | |
# .. | |
"liuggio/statsd-client-bundle": ">=1.2", | |
# .. | |
} | |
// After running php composer.phar update liuggio/statsd-client-bundle | |
// Enable the Bundle in AppKernel.php |
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
<?php | |
namespace SeekTeam\PremiumBundle\Controller; | |
use SeekTeam\HomeBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | |
use JMS\SecurityExtraBundle\Annotation\Secure; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Symfony\Component\EventDispatcher\GenericEvent; |
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
<?php | |
namespace SeekTeam\PremiumBundle\Event; | |
final class Events | |
{ | |
const PREMIUM_START = 'gamercertified.premium.start'; | |
const PREMIUM_SUCCESS = 'gamercertified.premium.success'; | |
const PREMIUM_CANCEL = 'gamercertified.premium.cancel'; | |
const PREMIUM_ERROR = 'gamercertified.premium.error'; |
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
<?php | |
namespace SeekTeam\PremiumBundle\Event\Listener; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
use Symfony\Component\EventDispatcher\GenericEvent; | |
use SeekTeam\PremiumBundle\Event\Events; | |
class StatsListener implements EventSubscriberInterface |
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
<service id="seek_team_premium.contact.listener" class="SeekTeam\PremiumBundle\Event\Listener\StatsListener"> | |
<tag name="kernel.event_subscriber" /> | |
<argument type="service" id="liuggio_stats_d_client.factory" /> | |
<argument type="service" id="liuggio_stats_d_client.service" /> | |
</service> |
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
main: | |
remember_me: | |
key: "%secret%" | |
lifetime: 31536000 | |
path: / | |
domain: .my-domain.com # Defaults to the current domain from $_SERVER |
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
<?php | |
/** | |
* This class handles MoxieManager SymfonyAuthenticator (Symfony < 2.x). | |
* | |
* @author Tristan Bessoussa <tristan.bessoussa@gmail.com> | |
*/ | |
class MOXMAN_SymfonyAuthenticator_Plugin implements MOXMAN_Auth_IAuthenticator | |
{ | |
public function authenticate(MOXMAN_Auth_User $user) |
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
// ... | |
$response = $kernel->handle($request); | |
$response->send(); | |
$kernel->terminate($request, $response); |