public static function getSubscribedEvents() { return array('compiler.post_load' => array(array('addAttribute')), 'compiler.pre_dump' => array(array('removeAttribute'))); }