mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-18 18:46:48 +03:00
Update Flex archives
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"manifests": {
|
||||
"msgphp/user-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"MsgPhp\\UserBundle\\MsgPhpUserBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"src/": "%SRC_DIR%/"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/msgphp_user.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"use MsgPhp\\User\\Entity\\User;",
|
||||
"use Symfony\\Component\\DependencyInjection\\Loader\\Configurator\\ContainerConfigurator;",
|
||||
"",
|
||||
"return function (ContainerConfigurator $container) {",
|
||||
" $container->extension('msgphp_user', [",
|
||||
" 'class_mapping' => [",
|
||||
" User::class => \\App\\Entity\\User\\User::class,",
|
||||
" ],",
|
||||
" ]);",
|
||||
"};",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"src/Entity/User/User.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"namespace App\\Entity\\User;",
|
||||
"",
|
||||
"use Doctrine\\ORM\\Mapping as ORM;",
|
||||
"use MsgPhp\\User\\Entity\\User as BaseUser;",
|
||||
"use MsgPhp\\User\\UserIdInterface;",
|
||||
"",
|
||||
"/**",
|
||||
" * @ORM\\Entity()",
|
||||
" */",
|
||||
"class User extends BaseUser",
|
||||
"{",
|
||||
" /** @ORM\\Id() @ORM\\GeneratedValue() @ORM\\Column(type=\"msgphp_user_id\") */",
|
||||
" private $id;",
|
||||
"",
|
||||
" public function __construct(UserIdInterface $id)",
|
||||
" {",
|
||||
" $this->id = $id;",
|
||||
" }",
|
||||
"",
|
||||
" public function getId(): UserIdInterface",
|
||||
" {",
|
||||
" return $this->id;",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "fea9ec90769540d6f369e7f4e31ca80ca768d170"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user