Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

[WIP] [2.0] Introduced the concept of loaders #294

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented May 27, 2016

This is the start of supporting annotations and mapping files instead of
PHP extractor methods and lots of interfaces.

Most of this PR is just about moving methods and code around.

Todo

/fixes #133

@wouterj wouterj changed the title [2.0] (for now) Introduced the concept of loaders [WIP] [2.0] (for now) Introduced the concept of loaders May 27, 2016
@ElectricMaxxx
Copy link
Member

Will have a closer Look into the code later, for now i miss the PR template. Thought it's added by github for every commiter.

@wouterj
Copy link
Member Author

wouterj commented May 27, 2016

@ElectricMaxxx it's because there is a typo in the template file name

@wouterj
Copy link
Member Author

wouterj commented May 27, 2016

Updated the PR with an annotation loader

@@ -42,7 +42,7 @@
<argument type="service" id="sonata.seo.page" />
<argument type="service" id="translator" />
<argument type="service" id="cmf_seo.config_values" />
<argument type="service" id="cmf_seo.cache" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about the caching now? Simply done by the anotation metadata?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah it is one of the todo's , sorry

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extractors are no longer managed by SeoPresentation, but in a specialized ExtractorLoader. Caching was caching which extractors should be executed for which classes, so caching now is the task of this loader.

As the SEO values can be changed by an admin, it doesn't make sense to cache them.

@ElectricMaxxx
Copy link
Member

cool. Do read it right, that the former extraction system will stay and you just put it into its own loader?

@wouterj
Copy link
Member Author

wouterj commented May 27, 2016

@ElectricMaxxx yes, that's correct. This way, we can deprecate it during the 2.x lifecycle and get rid of it completely in 3.x

@wouterj wouterj force-pushed the annotations branch 2 times, most recently from d9f6cfb to 3e8c4b1 Compare June 2, 2016 08:03
@wouterj wouterj changed the title [WIP] [2.0] (for now) Introduced the concept of loaders [WIP] [2.0] Introduced the concept of loaders Jun 18, 2016
@wouterj
Copy link
Member Author

wouterj commented Jun 18, 2016

Finished and tested the cache integration. This should be ready for a final review now.

@@ -0,0 +1,7 @@
Symfony\Cmf\Bundle\SeoBundle\Tests\Resources\Document\ContentWithExtractors:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed (as well as empty.yml)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about that?

@wouterj
Copy link
Member Author

wouterj commented Jul 5, 2016

friendly ping @ElectricMaxxx, do you have some time to review this?

@ElectricMaxxx
Copy link
Member

@dbu can you give me a hand with that. I am currently on hollyday (very close to you @wouterj - Ostfriesland) and so i am almost completely AFK until the 17th of july.

@wouterj
Copy link
Member Author

wouterj commented Jul 5, 2016

@ElectricMaxxx no problem, let's just simply wait till you're back :) This PR isn't holding back any other PRs/progress

@wouterj
Copy link
Member Author

wouterj commented Aug 4, 2016

very friendly ping @ElectricMaxxx

global:
- SYMFONY_DEPRECATIONS_HELPER=weak

matrix:
include:
- php: 5.6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is LTS for 5.6 over now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, 5.6 is still tested (see the PHP version list). However, when testing all different supported Symfony versions, we should use the latest version around (as it's the quickest).

@ElectricMaxxx
Copy link
Member

@wouterj found some smal issues, but then it looks good.

@wouterj
Copy link
Member Author

wouterj commented Aug 12, 2016

applied the comments

@ElectricMaxxx ElectricMaxxx modified the milestones: 2.1, 2.0 Nov 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Deprecate extractors & introducing mappings
2 participants