Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

davidyell
Copy link
Contributor

@davidyell davidyell commented Apr 24, 2020

Resolves #14495

This change creates more flexibility in the interface by allowing custom Locator implementations such as the use-case shown in #12014

It should actually make no difference to the core framework code as \Cake\ORM\Table already implements \Cake\Datasource\RepositoryInterface.

The only downside I can think of, might be the stand-alone ORM package, as I can't see the interface in there.

@codecov
Copy link

codecov bot commented Apr 24, 2020

Codecov Report

Merging #14499 into 3.x will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                3.x   #14499   +/-   ##
=========================================
  Coverage     90.98%   90.99%           
  Complexity    14093    14093           
=========================================
  Files           525      525           
  Lines         36284    36284           
=========================================
+ Hits          33014    33016    +2     
+ Misses         3270     3268    -2     
Impacted Files Coverage Δ Complexity Δ
src/Cache/CacheEngine.php 74.00% <0.00%> (+2.00%) 21.00% <0.00%> (ø%)
src/Cache/CacheRegistry.php 100.00% <0.00%> (+4.16%) 11.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2b81bf...d58276b. Read the comment docs.

@ndm2
Copy link
Contributor

ndm2 commented Apr 24, 2020

Is this something that is ment to go into 4.x too? Because when mapped to real type declarations this would be invalid, as return type covariance is only available as of PHP 7.4

@markstory markstory added this to the 3.8.12 milestone Apr 25, 2020
@markstory
Copy link
Member

@ndm That's unfortunate. Changing the typing on the current interface would break compatibility 😢

@othercorey
Copy link
Member

We could add it to a wiki page tracking changes we can make when PHP 7.4 is the minimum version.

@othercorey
Copy link
Member

Added to 5.0 roadmap.

@othercorey othercorey closed this Apr 30, 2020
@davidyell davidyell deleted the locator-interface-tweak branch April 30, 2020 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants