This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
class ProjectConfiguration extends sfProjectConfiguration | |
{ | |
public function setup() | |
{ | |
$this->setupProjectPlugins(); | |
} | |
/** | |
* Responsible for initiating any plugins and pointing vendor plugins | |
* to the "vendor" subdirectory |
<?php | |
class xxxConfiguration extends sfXxxConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |
<?xml version="1.0"?> | |
<project name="" default="empty" basedir="."> | |
<description>W</description> | |
<property file="config.properties"/> | |
<target name="empty"> | |
<echo>Please choose what to deploy: all, nginx, website</echo> | |
</target> |
/* /app_dev.php/css/8a38a6f_style_4.css */ | |
/* The cssrewrite filter physically adds an extra ../ so that the this resolves correctly in dev */ | |
body{ | |
background: url(../../images/bodyBg.png) repeat-x; | |
font-family: Georgia, "Times New Roman", Times, serif; | |
} |
#!/bin/sh | |
# A little shortcut script for executing Behat inside a Symfony2 project | |
# | |
# Configure behat in Symfony2 per the following instructions and then place this in the root of your project | |
# http://docs.behat.org/bundle/index.html | |
# | |
# Example Usage: | |
# ./behat @BlogBundle |
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html
# Makefile for php project setup | |
# | |
# You can set these variables from the command line. | |
AUTHOR = Author | |
PROJECT = Project | |
BUILDFILE = project.phar | |
SRCDIR = src | |
TESTDIR = tests | |
PHPUNITCONFIG = phpunit.xml.dist |
<?php | |
namespace Ormigo\Bundle\BackofficeBundle\Menu; | |
use Knp\Menu\FactoryInterface; | |
use Symfony\Component\DependencyInjection\ContainerAware; | |
use Ormigo\Bundle\UserBundle\Model\User\UserQuery; | |
use Symfony\Component\Security\Core\Role\SwitchUserRole; |
<?php | |
namespace Application\ExerciseBundle\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
/** | |
* Overrides the default host for the Router's RequestContext service. | |
* |
<?php | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |