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 |
| 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
| server { | |
| set $website_host "mywonderfulwebsite.org"; | |
| set $website_root "/var/www/mywonderfulwebsite/web"; | |
| set $default_controller "index.php"; | |
| set $symfony_root "/var/www/mywonderfulwebsite/lib/vendor/symfony"; | |
| listen 80; | |
| server_name $website_host; | |
| # Gzip |