This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
| // | |
| // This server will start a bash shell and expose it | |
| // over socket.io to a browser. See ./term.html for the | |
| // client side. | |
| // | |
| // You should probably: | |
| // | |
| // npm install socket.io | |
| // curl -O https://github.com/LearnBoost/Socket.IO/raw/master/socket.io.min.js | |
| // |
| # Change ACL on the app/logs and app/cache directories | |
| after 'deploy', 'deploy:update_acl' | |
| # This is a custom task to set the ACL on the app/logs and app/cache directories | |
| namespace :deploy do | |
| task :update_acl, :roles => :app do | |
| shared_dirs = [ | |
| app_path + "/logs", |
| $ gem install watchr | |
| $ cd /path/to/symfony-project | |
| $ wget https://raw.github.com/gist/1151531/f12b125fed843086c05377d4f76185797121cbc6/phpunit.watchr | |
| $ watchr phpunit.watchr |
| <?php | |
| /** | |
| * This file demonstrates using Atlassian Crowd for Single Sign On. | |
| */ | |
| $crowd_app_name = 'REMOVED'; | |
| $crowd_app_password = 'REMOVED'; | |
| $crowd_url = 'http://crowd.REMOVED.com/crowd/services/SecurityServer?wsdl'; | |
| // http://pear.php.net/package/Services_Atlassian_Crowd |
| # Apt-install various things necessary for Ruby, guest additions, | |
| # etc., and remove optional things to trim down the machine. | |
| apt-get -y update | |
| apt-get -y remove apparmor | |
| apt-get -y install linux-headers-$(uname -r) build-essential | |
| apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
| apt-get clean | |
| # Remove this file to avoid dhclient issues with networking | |
| rm -f /etc/udev/rules.d/70-persistent-net.rules |
| <?php | |
| use Doctrine\ORM\EntityManager, | |
| Doctrine\ORM\Configuration, | |
| Doctrine\ORM\Mapping\ClassMetadata; | |
| /** | |
| * Active Entity trait | |
| * | |
| * Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers |
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <project name="[PROJECT_NAME]" default="build" basedir="."> | |
| <property environment="env"/> | |
| <loadfile property="version" srcfile="${basedir}/VERSION"/> | |
| <condition property="bat" value=".bat" else=""> | |
| <os family="windows" /> | |
| </condition> | |
| <target name="test"> | |
| <delete dir="${basedir}/build"/> |
| <?xml version="1.0"?> | |
| <configuration> | |
| <system.webServer> | |
| <defaultDocument> | |
| <files> | |
| <clear /> | |
| <add value="index.php" /> | |
| </files> | |
| </defaultDocument> |
| <?php | |
| namespace MyApp\MyBundle\Session; | |
| use Symfony\Component\Security\Core\User\AccountInterface; | |
| class MemcachedSessionRegistryStorage implements SessionRegistryStorageInterface | |
| { | |
| protected $memcached; |