Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement CacheLifetimeBehaviourInterface in ArticleBridge #621

Merged

Conversation

luca-rath
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets -
Related issues/PRs sulu/sulu#6814
License MIT

What's in this PR?

Implement CacheLifetimeBehaviourInterface in ArticleBridge

Why?

This allows Sulu's CacheLifetimeEnhancer service to work with ArticleBridge objects. The reason for this is, that the HeadlessWebsiteController can then be used to render articles.

@luca-rath luca-rath force-pushed the feature/cache-lifetime-behaviour branch from 46dc671 to 7cbe015 Compare September 15, 2022 12:12
@alexander-schranz
Copy link
Member

alexander-schranz commented Sep 20, 2022

This should target a new 2.6 branch as it will require sulu/sulu 2.6. Okay 2.5 is not released yet but it need require sulu/sulu:^2.6@dev currently.

@luca-rath
Copy link
Contributor Author

This should target a new 2.6 branch as it will require sulu/sulu 2.6. Okay 2.5 is not released yet but it need require sulu/sulu:^2.6@dev currently.

nope, therefore I added the fallback interface here

Copy link
Contributor Author

@luca-rath luca-rath left a comment

Choose a reason for hiding this comment

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

those type hints should be allowed as well, right?

Document/Structure/ArticleBridge.php Outdated Show resolved Hide resolved
Document/Structure/ArticleBridge.php Outdated Show resolved Hide resolved
Document/Structure/ArticleBridge.php Outdated Show resolved Hide resolved
Document/Structure/ArticleBridge.php Outdated Show resolved Hide resolved
Co-authored-by: Alexander Schranz <[email protected]>
@alexander-schranz
Copy link
Member

The php-cs fixer fails we did fix this issue by adopting the php-cs fixer config in our projects to this:

        'phpdoc_to_comment' => [
            'ignored_tags' => ['todo', 'var', 'see', 'phpstan-ignore-next-line'],
        ],

@alexander-schranz alexander-schranz merged commit 276abbc into sulu:2.5 Sep 20, 2022
@luca-rath luca-rath deleted the feature/cache-lifetime-behaviour branch September 21, 2022 07:47
wachterjohannes pushed a commit to wachterjohannes/SuluArticleBundle that referenced this pull request Sep 22, 2022
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.

3 participants