These instructions install ruby and rubygems from source, not from RPMs. For instructions on installing from RPMs, look at something like http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs or http://mykestubbs.com/blog/2010/03/chef-installation-on-centos-54.html
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 Behat\CommonContext; | |
use Behat\BehatBundle\Context\BehatContext; | |
use Behat\Behat\Event\ScenarioEvent; | |
use Doctrine\ORM\Tools\SchemaTool; | |
/** | |
* Provides hooks for building and cleaning up a database schema with Doctrine. |
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
"repositories": { | |
"antimattr/google-bundle": { | |
"package": { | |
"name": "antimattr/google-bundle", | |
"version": "master", | |
"source": { | |
"url": "git://github.com/antimattr/GoogleBundle.git", | |
"type": "git", | |
"reference": "master" | |
}, |
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
#/bin/sh | |
setfacl -R -m u:apache:rwx app/cache app/logs | |
setfacl -R -d -m u:apache:rwx app/cache app/logs | |
setfacl -R -m u:kuba:rwx app/cache app/logs | |
setfacl -R -d -m u:kuba:rwx app/cache app/logs | |
setfacl -R -m mask:rwx app/cache app/logs | |
setfacl -R -d -m mask:rwx app/cache app/logs |
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 PSS\Bundle\ContentBundle\Twig\Extension; | |
use Symfony\Bundle\FrameworkBundle\Templating\Helper\ActionsHelper; | |
class BlockActionExtension extends \Twig_Extension | |
{ | |
/** | |
* @var \Symfony\Bundle\FrameworkBundle\Templating\Helper\ActionsHelper $actionsHelper |
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
#!/bin/sh | |
# ./bin/behat-ci.sh | |
project_dir=$(dirname $(readlink -f $0))"/.." | |
logs_path=${1:-"./build/logs/behat"} | |
reports_path=${2:-"./build/behat"} | |
cd $project_dir |
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 Zalas\Cache; | |
use Doctrine\Common\Cache\AbstractCache; | |
/** | |
* This class can be used to cache the result and output of function and method calls. | |
* | |
* Loosly based on sfFuncionCache: http://trac.symfony-project.org/browser/branches/1.4/lib/cache/sfFunctionCache.class.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
#!/bin/bash | |
SYMFONY_PATH="src/Symfony" | |
OUTPUT_PATH="../symfony.dev/web/coverage" | |
component=$1||'' | |
if [ -f phpunit.xml ]; then | |
echo "phpunit.xml file already exists. Remove it to continue." |
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 | |
$phar = new \Phar('symfony-check.phar', 0, 'symfony-check.phar'); | |
$phar->startBuffering(); | |
$files = array( | |
'app/check.php', | |
'app/SymfonyRequirements.php', | |
'vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/skeleton/app/SymfonyRequirements.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 Acme\Bundle\UserBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormEvent; | |
class UserType extends AbstractType |