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 | |
use Doctrine\ORM\EntityManager, | |
Doctrine\ORM\Configuration, | |
Doctrine\ORM\Mapping\ClassMetadata; | |
/** | |
* Active Entity trait | |
* | |
* Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers |
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
It's a shame, but https://github.com/zendframework/zf2 contains dozens of files with CRLF issues. | |
If like me, you set your Git core.autocrlf to true, then your ZendFramework submodule is always modified: | |
$ git status | |
# On branch master | |
# Changed but not updated: | |
# | |
# modified: src/vendor/zend | |
To fix it, you can set Git core.autocrlf to false *only for this submodule*. |
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 | |
class xxxConfiguration extends sfXxxConfiguration | |
{ | |
public function setup() | |
{ | |
$this->dispatcher->connect('command.filter_options', array($this, 'filterCommandOptions')); | |
} | |
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
# my php configure command for mac os x and homebrew | |
./configure --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr/local/Cellar/libxml2/2.7.7 --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local/Cellar/jpeg/8b --with-png-dir=/usr/local/Cellar/libpng/1.2.44 --enable-gd-native-ttf --with-ldap=/usr --with-ldap-sasl=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-iodbc=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --enable-zend-multibyte --enable-zip --with-pcre-regex=/usr/local/Cellar/pcre/8.10 --with-readline=/usr/local/Cellar/readline/6.1 --with-mcrypt=/usr/local/Cellar/mcrypt/2.5 |
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 | |
class aPage extends PluginaPage | |
{ | |
/** | |
* A shortcut method for loading fixture data. | |
* | |
* With this method in place you can simplify your aPage fixture file to a | |
* much more concise syntax using the "initial_areas" entry. | |
* |