MigrationBuilder should have an interface, contrib code should not type hint against the implementation because as per DIP. This in turn prevents the service from being replace in the container.

CommentFileSizeAuthor
#2 2626476-2.patch1.82 KBbenjy

Comments

benjy created an issue. See original summary.

benjy’s picture

Status: Active » Needs review
StatusFileSize
new1.82 KB

Patch attached.

phenaproxima’s picture

Status: Needs review » Reviewed & tested by the community

RTBC assuming Drupal CI passes it.

cilefen’s picture

Version: 8.0.x-dev » 8.1.x-dev

This is needed, but it is an API improvement so it goes to 8.1.x.

phenaproxima’s picture

Migrate is experimental, so it's not subject to the normal rules. A committer should confirm this.

alexpott’s picture

This seems fine to go into 8.0.x - it does not break exiting contrib migrations and other migrate projects are helped by having an interface.

benjy’s picture

Version: 8.1.x-dev » 8.0.x-dev

Back to 8.0.x

alexpott’s picture

#6 was my framework manager review - this is an experimental module and this change does not majorly disrupt contrib implementations on the main API. This change would not be okay for stable core code.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed a853693 and pushed to 8.0.x and 8.1.x. Thanks!

  • alexpott committed dd06e6d on 8.1.x
    Issue #2626476 by benjy: MigrationBuilder should have an interface
    

  • alexpott committed a853693 on
    Issue #2626476 by benjy: MigrationBuilder should have an interface
    
    (...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.