mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-17 18:16:46 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33bec3ca7f |
@@ -1,90 +0,0 @@
|
|||||||
{
|
|
||||||
"manifests": {
|
|
||||||
"axium/identity": {
|
|
||||||
"manifest": {
|
|
||||||
"bundles": {
|
|
||||||
"Axium\\Identity\\AxiumIdentityBundle": [
|
|
||||||
"all"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"copy-from-recipe": {
|
|
||||||
"config/": "%CONFIG_DIR%/"
|
|
||||||
},
|
|
||||||
"env": {
|
|
||||||
"AXIUM_IDENTITY_URL": "https://identity.example.com",
|
|
||||||
"AXIUM_CLIENT_ID": "your-client-id",
|
|
||||||
"AXIUM_CLIENT_SECRET": "your-client-secret"
|
|
||||||
},
|
|
||||||
"post-install-output": [
|
|
||||||
"<bg=blue;fg=white> AXIUM Identity Bundle </>",
|
|
||||||
"",
|
|
||||||
"Le bundle a \u00e9t\u00e9 install\u00e9 avec succ\u00e8s.",
|
|
||||||
"Ajoutez les variables d'environnement suivantes dans votre fichier `.env` :",
|
|
||||||
"",
|
|
||||||
"```env",
|
|
||||||
"AXIUM_IDENTITY_URL=https://identity.example.com",
|
|
||||||
"AXIUM_CLIENT_ID=your-client-id",
|
|
||||||
"AXIUM_CLIENT_SECRET=your-client-secret",
|
|
||||||
"",
|
|
||||||
"## Configuration de s\u00e9curit\u00e9",
|
|
||||||
"",
|
|
||||||
"Copiez le fichier d'exemple de configuration de s\u00e9curit\u00e9 :",
|
|
||||||
"",
|
|
||||||
"```bash",
|
|
||||||
"cp config/packages/axium_identity_security.yaml.dist config/packages/security.yaml",
|
|
||||||
"",
|
|
||||||
"Puis adaptez la configuration selon les besoins de votre projet.",
|
|
||||||
"",
|
|
||||||
"Documentation:",
|
|
||||||
"https://gitlab.com/BenjaminYAO/axium-identity"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"files": {
|
|
||||||
"config/packages/axium_identity.yaml": {
|
|
||||||
"contents": [
|
|
||||||
"axium_identity:",
|
|
||||||
" url: '%env(AXIUM_IDENTITY_URL)%'",
|
|
||||||
" client_id: '%env(AXIUM_CLIENT_ID)%'",
|
|
||||||
" client_secret: '%env(AXIUM_CLIENT_SECRET)%'",
|
|
||||||
" verify_ssl: false",
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"executable": false
|
|
||||||
},
|
|
||||||
"config/packages/axium_identity_security.yaml.dist": {
|
|
||||||
"contents": [
|
|
||||||
"security:",
|
|
||||||
" password_hashers:",
|
|
||||||
" Symfony\\Component\\Security\\Core\\User\\PasswordAuthenticatedUserInterface: 'auto'",
|
|
||||||
"",
|
|
||||||
" providers:",
|
|
||||||
" app_user_provider:",
|
|
||||||
" entity:",
|
|
||||||
" class: App\\Entity\\User",
|
|
||||||
" property: email",
|
|
||||||
"",
|
|
||||||
" firewalls:",
|
|
||||||
" dev:",
|
|
||||||
" pattern: ^/(_profiler|_wdt|assets|build)/",
|
|
||||||
" security: false",
|
|
||||||
"",
|
|
||||||
" main:",
|
|
||||||
" lazy: true",
|
|
||||||
" provider: app_user_provider",
|
|
||||||
" custom_authenticator:",
|
|
||||||
" - Axium\\Identity\\Security\\IdentityAuthenticator",
|
|
||||||
" logout:",
|
|
||||||
" path: app_logout",
|
|
||||||
" target: app_login",
|
|
||||||
"",
|
|
||||||
" access_control:",
|
|
||||||
" - { path: ^/dashboard, roles: ROLE_USER }",
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"executable": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ref": "7120857f6e8e23a61f13ef48c8e1bf14af99ccb3"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+6
-4
@@ -1,8 +1,10 @@
|
|||||||
{
|
{
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"recipes": {
|
"recipes": {
|
||||||
"axium/identity": [
|
"sonata-project/media-bundle": [
|
||||||
"1.0"
|
"3.13",
|
||||||
|
"4.0",
|
||||||
|
"4.19"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"recipe-conflicts": [],
|
"recipe-conflicts": [],
|
||||||
@@ -12,9 +14,9 @@
|
|||||||
"_links": {
|
"_links": {
|
||||||
"repository": "github.com/symfony/recipes-contrib",
|
"repository": "github.com/symfony/recipes-contrib",
|
||||||
"origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main",
|
"origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main",
|
||||||
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2013/{package_dotted}.{version}.json",
|
"recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2055/{package_dotted}.{version}.json",
|
||||||
"recipe_template_relative": "{package_dotted}.{version}.json",
|
"recipe_template_relative": "{package_dotted}.{version}.json",
|
||||||
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2013/archived/{package_dotted}/{ref}.json",
|
"archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2055/archived/{package_dotted}/{ref}.json",
|
||||||
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
"archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"sonata-project/media-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"Sonata\\MediaBundle\\SonataMediaBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/",
|
||||||
|
"public/": "%PUBLIC_DIR%/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media:",
|
||||||
|
" default_context: default",
|
||||||
|
" contexts:",
|
||||||
|
" default:",
|
||||||
|
" providers:",
|
||||||
|
" - sonata.media.provider.dailymotion",
|
||||||
|
" - sonata.media.provider.youtube",
|
||||||
|
" - sonata.media.provider.image",
|
||||||
|
" - sonata.media.provider.file",
|
||||||
|
" - sonata.media.provider.vimeo",
|
||||||
|
"",
|
||||||
|
" formats:",
|
||||||
|
" small: { width: 100 , quality: 70}",
|
||||||
|
" big: { width: 500 , quality: 70}",
|
||||||
|
"",
|
||||||
|
" cdn:",
|
||||||
|
" server:",
|
||||||
|
" path: /upload/media",
|
||||||
|
"",
|
||||||
|
" filesystem:",
|
||||||
|
" local:",
|
||||||
|
" # Directory for uploads should be writable",
|
||||||
|
" directory: \"%kernel.project_dir%/public/upload/media\"",
|
||||||
|
" create: false",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"config/routes/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media_gallery:",
|
||||||
|
" resource: '@SonataMediaBundle/Resources/config/routing/gallery.xml'",
|
||||||
|
" prefix: /media/gallery",
|
||||||
|
"",
|
||||||
|
"sonata_media:",
|
||||||
|
" resource: '@SonataMediaBundle/Resources/config/routing/media.xml'",
|
||||||
|
" prefix: /media",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"public/upload/media/.gitignore": {
|
||||||
|
"contents": [
|
||||||
|
"*",
|
||||||
|
"!.gitignore",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "e25412e53b20827db07abb6f2aa0b8e4d26c284c"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"sonata-project/media-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"Sonata\\MediaBundle\\SonataMediaBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/",
|
||||||
|
"public/": "%PUBLIC_DIR%/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media:",
|
||||||
|
" default_context: default",
|
||||||
|
" contexts:",
|
||||||
|
" default:",
|
||||||
|
" providers:",
|
||||||
|
" - sonata.media.provider.dailymotion",
|
||||||
|
" - sonata.media.provider.youtube",
|
||||||
|
" - sonata.media.provider.image",
|
||||||
|
" - sonata.media.provider.file",
|
||||||
|
" - sonata.media.provider.vimeo",
|
||||||
|
"",
|
||||||
|
" formats:",
|
||||||
|
" small: { width: 100 , quality: 70}",
|
||||||
|
" big: { width: 500 , quality: 70}",
|
||||||
|
"",
|
||||||
|
" cdn:",
|
||||||
|
" server:",
|
||||||
|
" path: /uploads/media",
|
||||||
|
"",
|
||||||
|
" filesystem:",
|
||||||
|
" local:",
|
||||||
|
" # Directory for uploads should be writable",
|
||||||
|
" directory: \"%kernel.project_dir%/public/uploads/media\"",
|
||||||
|
" create: false",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"config/routes/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media:",
|
||||||
|
" resource: '@SonataMediaBundle/Resources/config/routing/media.xml'",
|
||||||
|
" prefix: /media",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"public/uploads/media/.gitignore": {
|
||||||
|
"contents": [
|
||||||
|
"*",
|
||||||
|
"!.gitignore",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "ec54b1d3b1ec60cd92f482f65bb707c765fd5e8d"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"manifests": {
|
||||||
|
"sonata-project/media-bundle": {
|
||||||
|
"manifest": {
|
||||||
|
"bundles": {
|
||||||
|
"Sonata\\MediaBundle\\SonataMediaBundle": [
|
||||||
|
"all"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"copy-from-recipe": {
|
||||||
|
"config/": "%CONFIG_DIR%/",
|
||||||
|
"public/": "%PUBLIC_DIR%/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"files": {
|
||||||
|
"config/packages/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media:",
|
||||||
|
" default_context: default",
|
||||||
|
" contexts:",
|
||||||
|
" default:",
|
||||||
|
" providers:",
|
||||||
|
" - sonata.media.provider.dailymotion",
|
||||||
|
" - sonata.media.provider.youtube",
|
||||||
|
" - sonata.media.provider.image",
|
||||||
|
" - sonata.media.provider.file",
|
||||||
|
" - sonata.media.provider.vimeo",
|
||||||
|
"",
|
||||||
|
" formats:",
|
||||||
|
" small: { width: 100 , quality: 70}",
|
||||||
|
" big: { width: 500 , quality: 70}",
|
||||||
|
"",
|
||||||
|
" cdn:",
|
||||||
|
" server:",
|
||||||
|
" path: /uploads/media",
|
||||||
|
"",
|
||||||
|
" filesystem:",
|
||||||
|
" local:",
|
||||||
|
" # Directory for uploads should be writable",
|
||||||
|
" directory: \"%kernel.project_dir%/public/uploads/media\"",
|
||||||
|
" create: false",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"config/routes/sonata_media.yaml": {
|
||||||
|
"contents": [
|
||||||
|
"sonata_media:",
|
||||||
|
" resource: '@SonataMediaBundle/Resources/config/routing/media.php'",
|
||||||
|
" type: php",
|
||||||
|
" prefix: /media",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
},
|
||||||
|
"public/uploads/media/.gitignore": {
|
||||||
|
"contents": [
|
||||||
|
"*",
|
||||||
|
"!.gitignore",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"executable": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ref": "fa0c4e8ddc11b58c5d7efe61507c38d5b5ff0171"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user