filters.php 317 B

12345678910111213141516171819202122
  1. <?php
  2. return array(
  3. 'before_filter' => function()
  4. {
  5. return 'filtered before';
  6. },
  7. 'after_filter' => function($response)
  8. {
  9. $response->content = 'filtered after';
  10. return $response;
  11. },
  12. 'after_filter2' => function($response)
  13. {
  14. $response->content .= ' filtered after2';
  15. return $response;
  16. },
  17. );