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

Chore - Splitting Twig hooks configuration in test application #236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Feb 14, 2025

No description provided.

@@ -1,64 +1,8 @@
imports:
- { resource: '../sylius/twig_hooks/**/**' }
Copy link
Member

Choose a reason for hiding this comment

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

Why not

  • config/packages/app/twig_hooks/**/**
  • config/packages/sylius_twig_hooks/**/**

or other similar path -- main point it should be inside config/packages as per symfony notation.

image

Copy link
Member

Choose a reason for hiding this comment

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

We need to make a poll on it and make an ADR or something. Currently sylius-standard/plugin-skeleton and other places uses all kind of notations.

sylius_twig_hooks:
hooks:
'app.base':
content:
template: 'base/content.html.twig'

'sylius_admin.common.show.content':
Copy link
Member

Choose a reason for hiding this comment

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

This hookable is not extracted into separate file -- is this intentional?

configuration:
icon: tabler:list-details

'sylius_admin.book.index.content.header':
Copy link
Member

Choose a reason for hiding this comment

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

This hookable is not extracted into separate file -- is this intentional?

'configuration' => [
'title' => 'app.ui.new_conference',
'icon' => 'tabler:plus',
'subheader' => 'app.ui.managing_your_conferences',
Copy link
Member

Choose a reason for hiding this comment

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

On unrelated note, it should be either title / subtitle or header / subheader

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.

2 participants