Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: gpslab/domain-event-bundle

Release 2.3.1

24 May 12:38
e02fad1
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Changelog (since2.3.0...2.3.1)

Contributors

  • @peter-gribanov
peter-gribanov
Assets2
Loading

Release 2.3.0

25 Mar 16:56
0342c65
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Changelog (since2.2.0...2.3.0)

Contributors

  • @peter-gribanov
peter-gribanov
Loading

Release 2.2.0

15 Aug 14:56
2478554
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Changelog (since2.1.4...2.2.0)

Contributors

  • @peter-gribanov
peter-gribanov
Loading

Release 2.1.4

15 Aug 12:26
6f22238
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Changelog (since2.1.3...2.1.4)

Contributors

  • @peter-gribanov
peter-gribanov
Loading

Release 2.1.3

23 Oct 09:58
Compare
Choose a tag to compare
Loading

Changelog (since2.1.2...2.1.3)

  • Restore tests
  • Change build icons
Loading

Release 2.1.2

19 Oct 12:32
Compare
Choose a tag to compare
Loading

Changelog (since2.1.1...2.1.2)

  • Pull events from initialized Doctrine proxy classes [Bugfix]
  • Test on PHP 7.2
  • Test with Symfony 3.4, 4.1 and Doctrine 2.6
  • Create service aliases for EventBus and EventQueue
  • Subscribers tagged automatically
Loading

Release 2.1.1

03 Oct 09:21
Compare
Choose a tag to compare
Loading

Changelog (since2.1.0...2.1.1)

  • Added ability tosubscribe to events.

    useGpsLab\Domain\Event\Event;useGpsLab\Domain\Event\Listener\Subscriber;class SendEmailOnPurchaseOrderCreatedimplements Subscriber{private$mailer;publicfunction__construct(\Swift_Mailer$mailer)    {$this->mailer =$mailer;    }publicstaticfunctionsubscribedEvents()    {return [            PurchaseOrderCreatedEvent::class => ['onPurchaseOrderCreated'],        ];    }publicfunctiononPurchaseOrderCreated(PurchaseOrderCreatedEvent$event)    {$message =$this->mailer            ->createMessage()            ->setTo('recipient@example.com')            ->setBody(sprintf('Purchase order created at %s for customer #%s',$event->getCreateAt()->format('Y-m-d'),$event->getCustomer()->getId()            ));$this->mailer->send($message);    }}

    Register event subscriber

    services:acme.domain.purchase_order.event.created.send_email_subscriber:class:SendEmailOnPurchaseOrderCreatedarguments:[ '@mailer' ]tags:            -{ name: domain_event.subscriber }
Loading

Release 2.1.0

17 Aug 15:20
Compare
Choose a tag to compare
Loading

Changelog (since2.0.1...2.1.0)

  • Publish domain events on Doctrine eventsPreRemove/PostRemove [Bugfix]

    Befire:
    PreRemove andPostRemove events is ignored.

    After:
    If you need do somthing after entity is removed you can usePreRemove/PostRemoveLifecycle Events.

    /** * @ORM\Table(name="article") * @ORM\Entity() * @ORM\HasLifecycleCallbacks() */class Article{/**     * @ORM\Id     * @ORM\GeneratedValue(strategy="IDENTITY")     * @ORM\Column(name="id", type="ArticleId", nullable=false)     */private$id;/**     * @ORM\Column(name="cover", type="string", length=255, nullable=true)     */private$cover;// .../**     * @ORM\PreRemove()     */publicfunctionpreRemove()    {// remove cover after remove article$this->raise(newArticleRemoved($this->id,$this->cover));    }/**     * @ORM\PostRemove()     */publicfunctionpostRemove()    {// $this->id is null    }}
Loading

Release 2.0.1

20 Jul 09:25
Compare
Choose a tag to compare
Loading

Changelog (since2.0.0...2.0.1)

  • Correctdomain_event.bus.listener_located service name.
Loading

Release 2.0.0

17 Jul 11:16
Compare
Choose a tag to compare
Loading

Changelog (since1.1.0...2.0.0)

Configuration

Before:

gpslab_domain_event:# Event bus service# Support 'listener_locator', 'queue' or a custom service# As a default used 'listener_locator'bus:'listener_locator'# Event queue service# Support 'memory', 'memory_unique' or a custom service# As a default used 'memory_unique'queue:'memory_unique'# Event listener locator# Support 'voter', 'named_event' or custom service# As a default used 'named_event'locator:'named_event'# Evant name resolver used in 'named_event' event listener locator# Support 'event_class', 'event_class_last_part', 'named_event' or a custom service# As a default used 'event_class'name_resolver:'event_class'

After:

gpslab_domain_event:# Event bus service# Support 'listener_located', 'queue' or a custom service# As a default used 'listener_located'bus:'listener_located'# Event queue service# Support 'pull_memory', 'subscribe_executing' or a custom service# As a default used 'pull_memory'queue:'pull_memory'# Event listener locator# Support 'symfony', 'container', 'direct_binding' or custom service# As a default used 'symfony'locator:'symfony'# Publish domain events post a Doctrine flush event# As a default used 'false'publish_on_flush:true

Publish domain events

  • Publish domain events post a Doctrine flush event.

Removed locators

  • Removeddomain_event.locator.voter service.
  • Removeddomain_event.locator.named_event service.
  • Ignore tagdomain_event.locator.voter forVoterLocator.
  • Ignore tagdomain_event.locator.named_event forNamedEventLocator.

Created locators

  • Createddomain_event.locator.symfony service of
    GpsLab\Domain\Event\Listener\Locator\SymfonyContainerEventListenerLocator locator.
  • Createddomain_event.locator.container service of
    GpsLab\Domain\Event\Listener\Locator\ContainerEventListenerLocator locator.
  • Createddomain_event.locator.direct_binding service of
    GpsLab\Domain\Event\Listener\Locator\DirectBindingEventListenerLocator locator.

Removed name resolvers

  • Removeddomain_event.name_resolver.event_class_last_part name resolver service.
  • Removeddomain_event.name_resolver.event_class name resolver service.
  • Removeddomain_event.name_resolver.named_event name resolver service.

Removed queue

  • Removeddomain_event.queue.memory queue service.
  • Removeddomain_event.queue.memory_unique queue service.

Created queue

  • Createddomain_event.queue.pull_memory service ofGpsLab\Domain\Event\Queue\Pull\MemoryPullEventQueue queue.
  • Createddomain_event.queue.subscribe_executing service of
    GpsLab\Domain\Event\Queue\Subscribe\ExecutingSubscribeEventQueue queue.

Changed event bus

  • Changed class fordomain_event.bus.listener_locator.

    Before usedGpsLab\Domain\Event\Bus\Bus class.

    After usedGpsLab\Domain\Event\Bus\ListenerLocatedEventBus class.

  • Servicedomain_event.bus.queue not use adomain_event.bus.listener_locator service.

Loading
Previous1
Previous

[8]ページ先頭

©2009-2025 Movatter.jp