Files
symfony-flex-recipes-contrib/enigma972.user-bundle.0.4.json
T
github-action botandgithub-action bot 06af7d5f81 Update Flex endpoint
2021-09-23 10:31:54 +00:00

132 lines
6.0 KiB
JSON

{
"manifests": {
"enigma972/user-bundle": {
"manifest": {
"bundles": {
"Enigma972\\UserBundle\\Enigma972UserBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/",
"src/": "%SRC_DIR%/"
},
"post-install-output": [
" * Create an User entity and extend Enigma972\\UserBundle\\Entity\\User class",
"",
" * And add all properties and methods you needs, it is your!",
"",
"Documentation: https://www.github.com/enigma972/user-bundle"
]
},
"files": {
"src/Repository/UserRepository.php": {
"contents": [
"<?php",
"",
"namespace App\\Repository;",
"",
"use App\\Entity\\User;",
"use Symfony\\Component\\Security\\Core\\User\\UserInterface;",
"use Enigma972\\UserBundle\\Repository\\UserRepository as Users;",
"",
"/**",
" * @method User|null find($id, $lockMode = null, $lockVersion = null)",
" * @method User|null findOneBy(array $criteria, array $orderBy = null)",
" * @method User[] findAll()",
" * @method User[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)",
" */",
"class UserRepository extends Users",
"{",
" // /**",
" // * @return User[] Returns an array of User objects",
" // */",
" /*",
" public function findByExampleField($value)",
" {",
" return $this->createQueryBuilder('u')",
" ->andWhere('u.exampleField = :val')",
" ->setParameter('val', $value)",
" ->orderBy('u.id', 'ASC')",
" ->setMaxResults(10)",
" ->getQuery()",
" ->getResult()",
" ;",
" }",
" */",
"",
" /*",
" public function findOneBySomeField($value): ?User",
" {",
" return $this->createQueryBuilder('u')",
" ->andWhere('u.exampleField = :val')",
" ->setParameter('val', $value)",
" ->getQuery()",
" ->getOneOrNullResult()",
" ;",
" }",
" */",
"}",
""
],
"executable": false
},
"src/Entity/User.php": {
"contents": [
"<?php",
"",
"namespace App\\Entity;",
"",
"use App\\Repository\\UserRepository;",
"use Doctrine\\Common\\Collections\\ArrayCollection;",
"use Doctrine\\Common\\Collections\\Collection;",
"use Doctrine\\ORM\\Mapping as ORM;",
"use Symfony\\Bridge\\Doctrine\\Validator\\Constraints\\UniqueEntity;",
"use Enigma972\\UserBundle\\Entity\\User as BaseUser;",
"",
"/**",
" * @ORM\\Entity(repositoryClass=UserRepository::class)",
" * @UniqueEntity(fields={\"username\"}, message=\"There is already an account with this username\")",
" */",
"class User extends BaseUser",
"{",
" public function __construct()",
" {",
" \tparent::__construct();",
" }",
"}",
""
],
"executable": false
},
"config/routes/enigma972_user.yaml": {
"contents": [
"enigma972_user:",
" resource: '@Enigma972UserBundle/Controller/'",
" type: annotation",
""
],
"executable": false
},
"config/packages/enigma972_user.yaml": {
"contents": [
"enigma972_user:",
" # if this value equal true, the User should confirm theire mail",
" check_mail: false",
" # The validity duration in secondes, 4 houres by default (14,400 sec)",
" reset_password_code_validity: 14400",
" # where to redirect after login",
" target: home",
" # the no reply email for this app",
" no_reply_mail: no-reply@mail.com",
" not_send_welcome_mail: true",
""
],
"executable": false
}
},
"ref": "498f1288950a5304338e73ce282df934828c8cf4"
}
}
}