symfony-cmf / resource-bundle

Resource Location for CMF documents based on Puli
https://cmf.symfony.com
5 stars 7 forks source link

Removed exception on defintion factory re-definition #28

Closed dantleech closed 8 years ago

dantleech commented 8 years ago

In cases where the bundle is rebooted (e.g. during tests / maybe during kernel warmup) the Factories are reregistered whch throws an Exception in the currentl logifc.

I have removed the exception and simply allow the factories to be re-set. The alternative is returning if the bundle is already set but this seems less robust.