mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 15:46:52 +03:00
71 lines
2.7 KiB
JSON
71 lines
2.7 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|