Symfony components – Main Concept



Symfony components – Main Concept

0 0


openxpo-slides

slides for the event #OpenExpoOnTour

On Github lunika / openxpo-slides

E-Commerce solution based on Symfony 2 components

By Manuel Raynaud / @manuraynaud

Open Expo 25/11/2014

THELIA

  • Since 2005
  • CMS/CMF e-commerce

Symfony components

  • Dependency Injection
  • Event Dispatcher
  • Http Kernel
  • Http Foundation
  • Form
  • Console

Main Concept

Event-driven programming paradigm

                        public function createCustomer($login, $password)
{
    $customerEvent = new CustomerEvent(
        $login,
        $password
    );

    $this->dispatch(TheliaEvents::CUSTOMER_CREATEACCOUNT, $customerEvent);

    $newCustomer = $customerEvent->getCustomer();

    ...
}
                    

Version 2

https://github.com/thelia/model

continuous integration

Loop

                    {ifloop rel="loop_id"}
    <p>Display if loop returns at least 1 result</p>
{loop id="loop_id" type="product" arg1="value1" arg2="value2"}
    price : #PRICE
{/loop}
    <p>Display if loop returns at least 1 result</p>
{/ifloop}
{elseloop}
    <p>Display if loop returns nothing</p>
{elseloop}
                

Modules

  • entraga
  • pago
  • búsqueda
  • ...

Demo

Demo

Demo Back-office

Conclusion

  • Easy to learn
  • Easy to use
  • Highly customizable
  • Use only what you need

Thanks !

http://thelia.net

http://demo.thelia.net

https://github.com/thelia/thelia

@theliaecommerce