Skip to content

Instantly share code, notes, and snippets.

@monofone
monofone / gist:5533792
Created May 7, 2013 16:04
Flow Routing for behat
/**
* @Given /^I am on the "([^"]*)" page$/
*/
public function iAmOnThePage($pageName) {
$uri = $this->resolvePageUri($pageName);
$this->visit($uri);
}
doctrine:
orm:
mappings:
# Prototype
AcmeAddressBundle:
type: annotation
dir: Domain/Model
prefix: Acme\AddressBundle\Domain\Model
is_bundle: true
@monofone
monofone / composer.json
Last active August 29, 2015 13:57
ansible-role composer.json
{
"name": "monofone/ansible-mysql",
"type": "ansible-role",
"require": {
"monofone/ansible-installer": "~1.0"
},
"extra": {
"installer-name": "mysql"
}
}
<?php
namespace Blage\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class DefaultController extends Controller
{
"require": {
"fusesource/stomp-php" : "2.0.*"
}
}
{ "repositories": [
{
"type": "vcs",
"url": "https://github.com/monofone/mysql.git"
},
{
"type": "vcs",
"url": "https://github.com/monofone/apache2php.git"
}
],
- hosts: all
vars_files:
- vars/main.yml
roles:
- apache2php
- mysql
#vars/main.yml
vhost_sites:
- {
host: 'app.local',
docroot: '/vagrant/web',
admin_email: 'admin@app.local',
aliases: [
app.dev
app.local.dev
]
<?php
include_once '/pearPath/Symfony/Component/ClassLoader/UniversalClassLoader.php';
use Symfony\Component\ClassLoader\UniversalClassLoader;
$loader = new UniversalClassloader();
$loader->registerNamespaces(
array(
<?php
include_once autoload.php
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Config\Loader\DelegatingLoader;