You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we switch to the Symfony this will work, but also could include ALL from Symfony packages which is not good for onion architecture.
Can You please explain me if this is a bug or maybe I don't know how to work with deptrac :)
Thanks for any help!
PS. I've found attribute and I was sure that was the collector what I was looking for - its for Assert fot DTO's. But with this config it's still not working & duplicate same errors:
May I use to write my own attribute check if this not working? Can anyone reproduce? My DTO class:
<?php
namespace MiningCity\DirectMiningService\Application\Post\DTO\Request;
use Symfony\Component\Validator\Constraints as Assert;
final class UpdatePostRequest
{
#[Assert\NotBlank]
#[Assert\Type('string')]
#[Assert\Length(min: 10)]
public string $content;
public ?\DateTime $publishedAt = null;
}
When I use this extra later and additionaly remove it from Symfony composer collector shows issues on two layers used on Application.
I think what you need is to update your Symfony layer. Use the BoolCollector to make sure that the Symfony layer excludes Symfony\\Component\\Validator\\Constraint. Ideally by using the LayerCollector in your must_not configuration with the value of SymfonyValidator.
If we switch to the
Symfony
this will work, but also could include ALL from Symfony packages which is not good for onion architecture.Can You please explain me if this is a bug or maybe I don't know how to work with deptrac :)
Thanks for any help!
PS. I've found
attribute
and I was sure that was the collector what I was looking for - its for Assert fot DTO's. But with this config it's still not working & duplicate same errors:The text was updated successfully, but these errors were encountered: