This is a (multiple allowed): * [] bug * [x] enhancement * [x] feature-discussion (RFC) * CakePHP Version: 3.next * Platform and Target: all. ### What you did Implement support for behavior in non-table Repositories, like cakephp/elastic-search ### What happened The constructor of Behavior accept only Table instance: https://github.com/cakephp/cakephp/blob/master/src/ORM/Behavior.php#L153 ### What you expected to happen Maybe we can replace Table typehint to RegistryInterface or other base class definition?