- version 3.6
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
{ | |
"require": { | |
"symfony/event-dispatcher": "2.1.0-stable" | |
} | |
} |
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 RE\AssetBundle\Model; | |
use Knp\Bundle\GaufretteBundle\FilesystemMap; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Gaufrette\FileStream\Local; |
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 | |
require_once dirname(__DIR__).'/../../../../app/AppKernel.php'; | |
/** | |
* Test case class helpful with Entity tests requiring the database interaction. | |
* For regular entity tests it's better to extend standard \PHPUnit_Framework_TestCase instead. | |
*/ | |
abstract class KernelAwareTest extends \PHPUnit_Framework_TestCase | |
{ |
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
# Symfony aliases | |
## Cache | |
alias sf_cache_clear="php app/console cache:clear" # Clears the cache | |
alias sf_cache_warmup="php app/console cache:warmup" # Warms up an empty cache | |
## Doctrine | |
alias sf_doctrine_="php app/console doctrine:cache:clear-metadata" # Clears all metadata cache for a entity manager | |
alias sf_doctrine_="php app/console doctrine:cache:clear-query" # Clears all query cache for a entity manager | |
alias sf_doctrine_="php app/console doctrine:cache:clear-result" # Clears result cache for a entity manager | |
alias sf_doctrine_="php app/console doctrine:database:create" # Creates the configured databases |
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
# Symfony 2 | |
alias sf='php app/console' | |
alias sf-vendors='php bin/vendors update' | |
alias sf-db='sf doctrine:database:drop --force && sf doctrine:database:create && sf doctrine:schema:update --force' | |
alias sf-fixtures='sf doctrine:fixtures:load' | |
alias sf-cc='rm -rf app/cache/* && rm -rf app/logs/* && sf cache:clear' | |
alias sf-assets='rm -rf web/bundles/* && sf assets:install --symlink web' | |
alias sf-acl='sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs && sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs' | |
# Widop Fixtures Bundle |