{
"manifests": {
"api-platform/admin-pack": {
"manifest": {
"copy-from-recipe": {
"assets/": "assets/",
"config/": "%CONFIG_DIR%/",
"templates/": "templates/"
},
"post-install-output": [
" * Your admin is almost ready:",
" 1. Install the JavaScript dependencies by running yarn add @api-platform/admin @babel/preset-react",
" 2. Edit webpack.config.js and uncomment the following lines:",
"",
" Encore",
" // ...",
" .enableReactPreset()",
" .addEntry('admin', './assets/js/admin.js')",
"",
" * Mark entities you want in the admin with the @ApiResource annotation, it appears in the admin!",
"",
" * Using MakerBundle? Try php bin/console make:entity --api-resource"
]
},
"files": {
"config/routes/api_platform_admin.yaml": {
"contents": [
"admin:",
" path: /admin",
" controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController",
" defaults:",
" template: admin.html.twig",
""
],
"executable": false
},
"assets/js/admin.js": {
"contents": [
"import React from 'react';",
"import ReactDOM from 'react-dom';",
"import { HydraAdmin } from '@api-platform/admin';",
"",
"const entrypoint = document.getElementById('api-entrypoint').innerText;",
"",
"ReactDOM.render(, document.getElementById('api-platform-admin'));",
""
],
"executable": false
},
"templates/admin.html.twig": {
"contents": [
"{% extends 'base.html.twig' %}",
"",
"{% block title %}API Platform Admin{% endblock %}",
"",
"{% block body %}{% endblock %}",
"",
"{% block javascripts %}",
" ",
" {{ encore_entry_script_tags('admin') }}",
"{% endblock %}",
""
],
"executable": false
}
},
"ref": "703c6453b039330753a7ae6cebd0af8ab1d770d8"
}
}
}