PhileCMS / Phile

A flat file CMS with a swappable parser and template engine.
https://philecms.github.io/
Other
255 stars 48 forks source link

[FEATURE] Couple Repository\Page to Model\Page #314

Closed Schlaefer closed 6 years ago

Schlaefer commented 6 years ago

Both depend on each other throughout the app. Repository retrieves Model. Model accesses Repository. Then other parts of the app need a Repository to create context for a Model again.

Instead of always creating new Repository instances it would be much more convenient and performance friendly to just pass the Repository a Model was created by around with the Model.