liip/LiipMagentoBundle — pull request #11 by pulse00 (2011-11-29 23:38:16+00:00)
Title: Added MageEvent

Event Proxy for Magento events. Usage:

Register your listener in Symfony:

```yaml
services:
acme_demo_bundle.customer_save_after:
class: %acme_demo_bundle.customer_save_after.class%
arguments: [ @some_service_id ]
tags:
- { name: kernel.event_listener, event: mage.customer_save_after, method: synchronize }
```

Dispatch your event in Magento (using the [Symfony-Module](https://github.com/pulse00/Magento-Symfony-Module)):

```XML

0.1.0

singleton
MyModule_Core_Customer_Synchronizer
synchronize

```

```php
getEvent();
$symfonyEvent = new MageEvent($mageEvent);
$container = Mage::getSingleton('Symfony_Core_DependencyInjection_Container');
$container->get('event_dispatcher')->dispatch('mage.customer_save_after', $symfonyEvent)

}
}
```