mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
[Composer] Bump phparkitect/phparkitect
This commit is contained in:
parent
b37ab5793d
commit
1b734d370a
2 changed files with 11 additions and 11 deletions
|
|
@ -212,7 +212,7 @@
|
|||
"mikey179/vfsstream": "^1.6",
|
||||
"mockery/mockery": "^1.6",
|
||||
"nyholm/psr7": "^1.8",
|
||||
"phparkitect/phparkitect": "^0.3",
|
||||
"phparkitect/phparkitect": "^0.6",
|
||||
"phpspec/phpspec": "^7.5",
|
||||
"phpspec/prophecy-phpunit": "^2.2",
|
||||
"phpstan/extension-installer": "^1.4",
|
||||
|
|
|
|||
|
|
@ -49,13 +49,13 @@ return static function (Config $config): void
|
|||
$separationClassSet,
|
||||
Rule::allClasses()
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Component'))
|
||||
->should(new NotDependsOnTheseNamespaces('Sylius\Bundle'))
|
||||
->should(new NotDependsOnTheseNamespaces(['Sylius\Bundle']))
|
||||
->because('Components should not depend on bundles')
|
||||
,
|
||||
Rule::allClasses()
|
||||
->except('Sylius\Component\Core')
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Component'))
|
||||
->should(new NotDependsOnTheseNamespaces('Sylius\Component\Core'))
|
||||
->should(new NotDependsOnTheseNamespaces(['Sylius\Component\Core']))
|
||||
->because('Stand-alone components should not depend on Core')
|
||||
,
|
||||
Rule::allClasses()
|
||||
|
|
@ -67,7 +67,7 @@ return static function (Config $config): void
|
|||
'Sylius\Bundle\ShopBundle',
|
||||
)
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle'))
|
||||
->should(new NotDependsOnTheseNamespaces('Sylius\Component\Core'))
|
||||
->should(new NotDependsOnTheseNamespaces(['Sylius\Component\Core']))
|
||||
->because('Stand-alone bundles should not depend on Core')
|
||||
,
|
||||
Rule::allClasses()
|
||||
|
|
@ -79,30 +79,30 @@ return static function (Config $config): void
|
|||
'Sylius\Bundle\ShopBundle',
|
||||
)
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle'))
|
||||
->should(new NotDependsOnTheseNamespaces('Sylius\Bundle\CoreBundle'))
|
||||
->should(new NotDependsOnTheseNamespaces(['Sylius\Bundle\CoreBundle']))
|
||||
->because('Stand-alone bundles should not depend on CoreBundle')
|
||||
,
|
||||
Rule::allClasses()
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\ShopBundle'))
|
||||
->should(new NotDependsOnTheseNamespaces(
|
||||
'Sylius\Bundle\AdminBundle',
|
||||
'Sylius\Bundle\ApiBundle',
|
||||
['Sylius\Bundle\AdminBundle'],
|
||||
['Sylius\Bundle\ApiBundle'],
|
||||
))
|
||||
->because('Shop should not depend on Admin and Api')
|
||||
,
|
||||
Rule::allClasses()
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\AdminBundle'))
|
||||
->should(new NotDependsOnTheseNamespaces(
|
||||
'Sylius\Bundle\ApiBundle',
|
||||
'Sylius\Bundle\ShopBundle',
|
||||
['Sylius\Bundle\ApiBundle'],
|
||||
['Sylius\Bundle\ShopBundle'],
|
||||
))
|
||||
->because('Admin should not depend on Shop and Api')
|
||||
,
|
||||
Rule::allClasses()
|
||||
->that(new ResideInOneOfTheseNamespaces('Sylius\Bundle\ApiBundle'))
|
||||
->should(new NotDependsOnTheseNamespaces(
|
||||
'Sylius\Bundle\AdminBundle',
|
||||
'Sylius\Bundle\ShopBundle',
|
||||
['Sylius\Bundle\AdminBundle'],
|
||||
['Sylius\Bundle\ShopBundle'],
|
||||
))
|
||||
->because('Api should not depend on Admin and Shop')
|
||||
,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue