{ "manifests": { "mukadi/wordpress-bundle": { "manifest": { "bundles": { "Mukadi\\WordpressBundle\\MukadiWordpressBundle": [ "all" ] }, "copy-from-recipe": { "config/": "%CONFIG_DIR%/", "public/": "%PUBLIC_DIR%", "sf-wp-bootstrap.php": "sf-wp-bootstrap.php" }, "copy-from-package": { "wp-cli.yml": "wp-cli.yml" }, "env": { "WP_PREFIX": "wp_", "WP_THEME": "wp-blank", "WP_DIR": "wp", "AUTH_KEY": "%generate(secret)%", "SECURE_AUTH_KEY": "%generate(secret)%", "LOGGED_IN_KEY": "%generate(secret)%", "NONCE_KEY": "%generate(secret)%", "AUTH_SALT": "%generate(secret)%", "SECURE_AUTH_SALT": "%generate(secret)%", "LOGGED_IN_SALT": "%generate(secret)%", "NONCE_SALT": "%generate(secret)%" }, "gitignore": [ "/public/wp/", "/public/upgrade/", "/public/uploads/", "/public/languages/", "/public/mu-plugins/", "/public/plugins/", "/public/themes/" ], "post-install-output": [ " * update your 'public/index.php' file accordingly to the 'sf-wp-bootstrap.php' file in the root directory.", " * Configure doctrine/dbal to ignore custom wordpress tables (such as tables generated by plugins)", " * Add the WordpressBundle routing file in your `config/routes.yaml`, after your custom routes to catch all Wordpress routes.", "", " * Read the documentation at https://github.com/mbo2olivier/mukadi-wordpress-bundle" ] }, "files": { "config/packages/mukadi_wordpress.yaml": { "contents": [ "mukadi_wordpress:", " table_prefix: \"%env(WP_PREFIX)%\"", " wordpress_directory: '%kernel.project_dir%/public/%env(WP_DIR)%'", "" ], "executable": false }, "public/.htaccess": { "contents": [ "# BEGIN WordPress", "", " RewriteEngine On", " RewriteBase /", " RewriteRule ^index\\.php$ - [L]", " RewriteCond %{REQUEST_FILENAME} !-f", " RewriteCond %{REQUEST_FILENAME} !-d", " RewriteRule . /index.php [L]", "", "# END WordPress", "" ], "executable": false }, "public/mu-plugins/symfony-bridge.php": { "contents": [ "dispatch($name, $event);", "}", "" ], "executable": false }, "public/plugins/index.php": { "contents": [ "", "", "", "" ], "executable": false }, "public/themes/wp-blank/functions.php": { "contents": [ "", ">", "", " \">", " ", " ", "", ">", "", "
", " ", "
", "" ], "executable": false }, "public/themes/wp-blank/index.php": { "contents": [ "", "", "
", " ", "
", "
", "

", "
", "", " ", "
", " ", "
", "

Nothing to see.

", "
", " ", "
", "", "apply();", "/** Sets up WordPress vars and included files. */", "require_once(ABSPATH . 'wp-settings.php');", "" ], "executable": false }, "sf-wp-bootstrap.php": { "contents": [ "load(__DIR__.'/../.env');", " }", "", " $env = $_SERVER['APP_ENV'] ?? 'dev';", " $debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));", "", " if ($debug) {", " umask(0000);", "", " Debug::enable();", " }", " define('WP_DEBUG', $debug);", "", " if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {", " Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);", " }", "", " if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {", " Request::setTrustedHosts(explode(',', $trustedHosts));", " }", "", " $kernel = new Kernel($env, $debug);", " # SF container in WP", " $GLOBALS['sf'] = function ($id) use (&$kernel) {", " return $kernel->getContainer()->get($id);", " };", "", " $kernelRequest = Request::createFromGlobals();", " $kernelResponse = $kernel->handle($kernelRequest);", " $kernelResponse->send();", " $kernel->terminate($kernelRequest, $kernelResponse);", "}", "run();", "" ], "executable": false } }, "ref": "34832dabf553f50dd7ceb7c2f4f1c5767d1526f9" } } }