fardus / traits-symfony
classes traits for symfony
Installs: 3 426
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
README
classes Traits for symfony
composer require traits-symfony
List of trait
Trait for Entity
- NameEntity
- CommentEntity
- DescriptionEntity
- AddressEntityTrait
- CityEntityTrait
- ZipEntity
Symfony Service Trait
- EntityManagerTrait
- LoggerTrait
- SerializerTrait
- SessionTrait
- TranslatorTrait
Symfony Security Trait
- NeedLogin (test function simulate login)
example use on classes
# symonny entity class Person { use \Fardus\Traits\Symfony\Entity\NameEntity; use \Fardus\Traits\Symfony\Entity\FirstnameEntity; use \Fardus\Traits\Symfony\Entity\AddressEntityTrait; use \Fardus\Traits\Symfony\Entity\CityEntityTrait; use \Fardus\Traits\Symfony\Entity\ZipEntity; use \Fardus\Traits\Symfony\Entity\EnableEntity; } # symfony services use Fardus\Traits\Symfony\Manager\LoggerTrait; class AbstractClient { use LoggerTrait; #... }