Join GitHub today
Exception Handling for Bricks #4353
Since Bricks are actually nothing else than a Symfony Sub Request, shouldn't symfony be able to handle exceptions for them? For example: I am currently building a Security Area where all of the backend pages are build within Pimcore. I have to check for authorization and would just throw a AccessDeniedException, but that doesn't work cause Pimcore handles any throwable directly in the Document\Tag.
What do you guys think about changing that behaviour for Bricks? For BC reasons, we could add a property/method to keep the behaviour as it is right now but have the possibility to throw exceptions and let them handle from symfony?