Showing posts with label symfony. Show all posts
Showing posts with label symfony. Show all posts
Thursday, December 25, 2014
Symfony2 ve Doctrine ile PostgreSQL'i Kullanarak Performanslı Mimari Oluşturma #sunum #pgday
Pgday kapsamında gerçekleşen Symfony sunum dosyası.
Wednesday, December 24, 2014
Monday, August 25, 2014
Listen switch_user Event in #Symfony
#config.yml services: myproject.security_switch_user: class: MyApp\AppBundle\Listener\SecuritySwitchUserListener tags: - { name: kernel.event_listener, event: security.switch_user, method: onSecuritySwitchUser }<?php// src/MyApp/AppBundle/Listener/SecuritySwitchUserListener.phpnamespace MyApp\AppBundle\Listener;use Symfony\Component\Security\Http\Event\SwitchUserEvent;class SecuritySwitchUserListener{public function onSecuritySwitchUser(SwitchUserEvent $event){$newUser = $event->getTargetUser();} }
Monday, June 16, 2014
Twig Extension içinde Symfony ContainerInterface kullanabilme
config.yml services altında
arguments sayesinden extension dosyasında service container'a erişebileceğim.
ojstr.twig.ojs_extension:
class: Sfapp\Common\Twig\SfappExtension
arguments: [@service_container]
tags:
- { name: twig.extension } arguments sayesinden extension dosyasında service container'a erişebileceğim.
Wednesday, April 2, 2014
Symfony forms disable csrf protection
Şöyle iki şekilde yapılabilir.
İlki formu olustururken, ikincisi de kökten çözüm EntityFormType içine yazarak. İkincisini yaparsanız ilgili tüm form kullanımlarında csrf olayını kapatmış oluyorsunuz.
Subscribe to:
Posts (Atom)