Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <?php | |
| namespace Acme\Bundle\AppBundle\Form\EventListener; | |
| use Symfony\Component\Form\Event\DataEvent; | |
| use Symfony\Component\Form\FormFactoryInterface; | |
| use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
| use Symfony\Component\Form\FormEvents; | |
| class IsAdminFieldSubscriber implements EventSubscriberInterface |
| # Inspired from http://blog.hio.fr/2011/09/17/doctrine2-yaml-mapping-example.html | |
| MyEntity: | |
| type: entity | |
| repositoryClass: MyRepositoryClass | |
| table: my_entity | |
| namedQueries: | |
| all: "SELECT u FROM __CLASS__ u" | |
| # Class-Table-Inheritance |
| # | |
| # nginx configuration example for Symfony2 | |
| # | |
| server { | |
| listen 80; | |
| server_name symfony2-example; | |
| root /var/www/sf2/web; | |
| access_log /var/log/nginx/sf2.access.log; | |
| error_log /var/log/nginx/sf2.error.log; |