This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
# watch files and rerun phpunit on changes | |
phpunitwait() { | |
while inotifywait $(find $1 -name '*.php'); | |
do | |
clear; | |
phpunit --colors $2; | |
done; | |
} |
- Tune /etc/ssh/sshd_config | |
UseDNS no # Disable DNS lookups | |
GSSAPIAuthentication no # Disable negotation of slow GSSAPI | |
don't forget to restart it, use a script provider to set it , or create it with veewee or snapshot it | |
- Tune Vagrantfile | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] |
This is only a summary. For a full list of changes see the NEWS file.
Feature | RFC / announcement | Author |
---|---|---|
Bundled ZendOptimizer+ as OPcache | https://wiki.php.net/rfc/optimizerplus | zeev |
#!/bin/sh | |
_complete_console() { | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
prev="${COMP_WORDS[COMP_CWORD-1]}" | |
console="${COMP_WORDS[0]}" | |
cmds=` ${console} | tail -n +6 | grep '^ ' | awk '{ print $1 }' ` |
<?php | |
// Are your fastcgi processes spread out evenly over the available hyperthreads on your server? | |
// This script will tell you. | |
// | |
// If your php-cgi process is not /usr/local/bin/php-cgi, tweak accordingly. | |
// | |
// In my experience they do tend to distribute pretty well over time, but see also | |
// assignhyperthreads.php. | |
// |
<?php | |
namespace Acme\FooBundle\Command; | |
use Doctrine\Common\Persistence\ManagerRegistry; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
class FindInvalidReferencesCommand extends ContainerAwareCommand |
<?php | |
/** | |
* I'd like to use IPC sockets (ipc://foo.ipc) but my virtual machine won't let me ... :) | |
* IPC sockets will be faster than TCP, so this script could run even faster than it does! | |
*/ | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; | |
use Symfony\Component\Console\Input\InputOption; |
namespace :symfony do | |
namespace :assets do | |
desc "Updates assets version" | |
task :update_version do | |
run "sed -i 's/\\(assets_version: \\)\\(.*\\)$/\\1 #{real_revision}/g' #{latest_release}/app/config/config.yml" | |
end | |
end | |
end | |
before "symfony:assetic:dump" do |
This guide is now available under this URL:
http://docs.behat.org/cookbook/bdd_in_symfony2_with_behat_mink_and_zombiejs.html