{ "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 npm 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": { "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 }, "config/routes/api_platform_admin.yaml": { "contents": [ "admin:", " path: /admin", " controller: Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController", " defaults:", " template: admin.html.twig", "" ], "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": "b5a9213db0daaa3c3f2908de5f069ca812b08c4c" } } }