Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17990

Re: Symfony 4 - how to get to the documentation of setting up event subscribers?

From Marek S <precz@spamowi.com>
Newsgroups comp.lang.php
Subject Re: Symfony 4 - how to get to the documentation of setting up event subscribers?
Date 2019-06-13 21:13 +0200
Organization ATMAN - ATM S.A.
Message-ID <qdu78n$37q$1@node2.news.atman.pl> (permalink)
References <qdrf5n$j7j$1@node2.news.atman.pl> <gmev4hFi9soU1@mid.individual.net>

Show all headers | View raw


W dniu 2019-06-13 o 14:50, Arno Welzel pisze:

Hi,

> Migrations are a part of Doctrine and not Symfony:
> 
> <https://www.doctrine-project.org/projects/doctrine-migrations/en/2.1/reference/events.html#migrations-events>
> 

Yes, I know. But on the other hand, event subscribers are supported by 
Symfony:

https://symfony.com/doc/current/event_dispatcher.html#creating-an-event-subscriber

Also Symfony suggest, that Doctrine is a kind of part of the Symfony:

https://symfony.com/doc/current/reference/dic_tags.html

"doctrine.event_listener"
"doctrine.event_subscriber"

It can be deduced that Doctrine's event subscribers are supported 
somehow. Also I found in the internet that it is possible to catch such 
events.

https://github.com/doctrine/dbal/issues/1110

The reason why ask general question is particular problem. There is a 
serious bug in Doctrine reported in 2015 and still not solved. The 
people wrote their own patch but this is workaround but not solution. 
Patches will be removed after composer's update operations. They suggest 
to use Symfonys's event subscriber to catch migration events

...or somehow catch postGenerateSchema.

Problem seems to be unsolvable for beginners in Symfony.

-- 
Pozdrawiam,
Marek

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-12 20:09 +0200
  Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-13 14:50 +0200
    Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-13 21:13 +0200
      Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-14 13:16 +0200
        Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-14 20:30 +0200
          Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-15 18:00 +0200
            Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-15 22:57 +0200
              Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-16 09:31 +0200
                Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Marek S <precz@spamowi.com> - 2019-06-16 14:29 +0200
                Re: Symfony 4 - how to get to the documentation of setting up event subscribers? Arno Welzel <usenet@arnowelzel.de> - 2019-06-17 00:18 +0200

csiph-web