events.xml 972 B

1234567891011121314151617181920
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © 2015 Ihor Vansach (ihor@magefan.com). All rights reserved.
  5. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  6. *
  7. * Glory to Ukraine! Glory to the heroes!
  8. */
  9. -->
  10. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
  11. <event name="controller_action_predispatch">
  12. <observer name="magefan_blog_controller_action_predispatch" instance="Magefan\Blog\Observer\PredispathAdminActionControllerObserver" />
  13. </event>
  14. <event name="controller_action_postdispatch_blog_post_save">
  15. <observer name="magefan_blog_invalidate_cache" instance="Magefan\Blog\Observer\InvalidateCache" />
  16. </event>
  17. <event name="controller_action_postdispatch_blog_category_save">
  18. <observer name="magefan_blog_invalidate_cache" instance="Magefan\Blog\Observer\InvalidateCache" />
  19. </event>
  20. </config>