Skip to content

Use php configs in extension examples#2160

Open
Umut Dogan (umutdogan4291) wants to merge 9 commits intomainfrom
use-php-configs-in-extension-examples
Open

Use php configs in extension examples#2160
Umut Dogan (umutdogan4291) wants to merge 9 commits intomainfrom
use-php-configs-in-extension-examples

Conversation

@umutdogan4291
Copy link
Contributor

No description provided.

@umutdogan4291 Umut Dogan (umutdogan4291) marked this pull request as draft March 3, 2026 09:01
@umutdogan4291 Umut Dogan (umutdogan4291) marked this pull request as ready for review March 3, 2026 14:04
<service id="Shopware\Commercial\B2B\B2BSuiteMigration\Components\EmployeeManagement\EmployeeManagementMigrationConfigurator">
<tag name="b2b.migration.configurator" priority="9000"/>
</service>
```PHP

Choose a reason for hiding this comment

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

I think lowercase is common markdown syntax, right? In our docs the spellchecker just wants uppercase cause it thinks that it is part of a sentence

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the warning this reference was mentioned. https://community.languagetool.org/rule/show/FILE_EXTENSIONS_CASE?lang=en&subId=1

But I think it's for using extension names in a normal sentence 🤔

<tag name="document.renderer"/>
</service>
```php
use Shopware\Core\Checkout\Document\Service\DocumentConfigLoader;

Choose a reason for hiding this comment

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

either write the whole file or do not use the use statements. I looks a bit off to have the use statements and then only having the $services->set call

->decorate(ElasticsearchProductDefinition::class)
->args([
service(MyProductEsDecorator::class . '.inner'),
service(\Doctrine\DBAL\Connection::class),

Choose a reason for hiding this comment

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

why not importing?

</service>
```php
$services->set(Swag\Example\Service\SwagService::class)
->public()

Choose a reason for hiding this comment

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

I would not promote that. usually services should not be public

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