I need to install an symfony2 bundle over the composer and do some stuff after the install process. So for the "stuff" after the install i add one line to the "post-install-cmd" in the composer.json
ServiceBundle\\Core\\Platform::registerService
and it calls the function, everything fine
public static function registerService(Event $event) {
//some stuff
exit;
}
The command I use:
php composer.phar update serviceplatform/bundles/poll
Now my question: Is it possible to get the name "serviceplatform/bundles/poll" or pass any arguments to the statement? I need the path from the bundle after the install.