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
| class AppKernel extends Kernel | |
| { | |
| public function registerBundles() | |
| { | |
| $bundles = array( | |
| new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), | |
| new Symfony\Bundle\SecurityBundle\SecurityBundle(), | |
| new Symfony\Bundle\TwigBundle\TwigBundle(), | |
| new Symfony\Bundle\MonologBundle\MonologBundle(), | |
| new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), |
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
| # Add a www with this block | |
| server { | |
| listen 80; | |
| server_name bedom.com; | |
| rewrite ^(.*)$ $scheme://www.bedom.com$1; | |
| } | |
| # Remove a www with this block instead | |
| server { | |
| listen 80; |
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
| var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |
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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://npmjs.org/install.sh | sh |
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 | |
| require_once dirname(__DIR__).'/../../../../app/AppKernel.php'; | |
| /** | |
| * Test case class helpful with Entity tests requiring the database interaction. | |
| * For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead. | |
| */ | |
| abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase | |
| { |