Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Wprowadzenie do Symfony Framework

Wprowadzenie do Symfony Framework

Sebastian Grodzicki

March 25, 2014
Tweet

More Decks by Sebastian Grodzicki

Other Decks in Programming

Transcript

  1. Sebastian Grodzicki • Team Leader @ GoldenLine • Software Developer

    @ GL • Zend Certified Engineer • PHP • PHP 5 • Zend Framework • SensioLabs
 Certified Symfony Developer
  2. PHP 5.3+ • przestrzenie nazw (namespaces) • funkcje anonimowe (lambda)

    • późne statyczne łączenie (Late Static Binding)
  3. Response HTTP/1.1 200 OK! Date: Tue, 25 Mar 2014 15:20:00

    GMT! Server: nginx/1.4.7! Content-Type: text/html! ! <html>! <h1>WDI</h1>! </html>
  4. Dependency Injection class NewsletterManager! {! ! protected $mailer;! ! !

    public function __construct(\Mailer $mailer)! ! {! ! ! $this->mailer = $mailer;! ! }! }
  5. Dependency Injection class NewsletterManager! {! ! protected $mailer;! ! !

    public function setMailer(\Mailer $mailer)! ! {! ! ! $this->mailer = $mailer;! ! }! }