Skip to content

Commit

Permalink
add web profiler to debug demo/skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Dec 30, 2020
1 parent 657de3f commit 766aa72
Show file tree
Hide file tree
Showing 28 changed files with 164 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/architecture.html

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/configuration.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions docs/contribute.html

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions docs/cookbook.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/create-extension.html

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions docs/en/sitemap.txt
@@ -0,0 +1,21 @@
https://pushword.piedweb.com/extension/admin
https://pushword.piedweb.com/extension/conversation
https://pushword.piedweb.com/extension/flat
https://pushword.piedweb.com/extension/page-scanner
https://pushword.piedweb.com/extension/page-update-notifier
https://pushword.piedweb.com/extension/static-generator
https://pushword.piedweb.com/extension/template-editor
https://pushword.piedweb.com/search.json
https://pushword.piedweb.com/architecture
https://pushword.piedweb.com/configuration
https://pushword.piedweb.com/contribute
https://pushword.piedweb.com/cookbook
https://pushword.piedweb.com/create-extension
https://pushword.piedweb.com/extension
https://pushword.piedweb.com/extensions
https://pushword.piedweb.com/
https://pushword.piedweb.com/installation
https://pushword.piedweb.com/license
https://pushword.piedweb.com/roadmap
https://pushword.piedweb.com/themes
https://pushword.piedweb.com/upgrade
1 change: 1 addition & 0 deletions docs/extension.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/extension/admin.html

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions docs/extension/conversation.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/extension/flat.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/extension/page-scanner.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/extension/page-update-notifier.html

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions docs/extension/static-generator.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/extension/template-editor.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/extensions.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/installation.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/license.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/roadmap.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/search.json
@@ -0,0 +1,3 @@


[{"title":"Admin","url":"\/extension\/admin","slug":"extension\/admin","content":"<p>Create, edit, delete Page, Media, User with an interface built on top of Sonata Admin.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code class=\"shell\">composer require pushword\/admin\n<\/code><\/pre>\n\n<p>Add Routes<\/p>\n\n<pre><code class=\"yaml\">admin:\n resource: '@PushwordAdminBundle\/AdminRoutes.yaml'\n"},{"title":"Conversation","url":"\/extension\/conversation","slug":"extension\/conversation","content":"<p>Extend your Pushword website with <strong>comments<\/strong>, a <strong>contact<\/strong> form or just an <strong>user input<\/strong>.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<p>Via <span data-rot=\"_cnpxntvfg.bet\/cnpxntrf\/chfujbeq\/pbairefngvba\">Packagist<\/span>&nbsp;:<\/p>\n\n<pre><code># Get the Bundle\nc"},{"title":"Flat","url":"\/extension\/flat","slug":"extension\/flat","content":"<p>Transform Pushword in a FlatFile CMS.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code>composer require piedweb\/flat-file\n<\/code><\/pre>\n\n<h2 id=\"configure\">Configure<\/h2>\n\n<p>Add in your current <code>config\/package\/pushword.yaml<\/code> for an App or globally under <code>pushword_static_generator:<"},{"title":"Page Scanner","url":"\/extension\/page-scanner","slug":"extension\/page-scanner","content":"<p>Find dead links, 404, 301 and more (command line or admin).<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code class=\"shell\">composer require pushword\/page-scanner\n<\/code><\/pre>\n\n<p>Add Routes<\/p>\n\n<pre><code class=\"yaml\">page_scanner:\n resource: '@PushwordPageScannerBundle\/PageScannerRoutes.yaml'\n<"},{"title":"Page Update Notifier","url":"\/extension\/page-update-notifier","slug":"extension\/page-update-notifier","content":"<p>Get mail notification when your pushword content (page) is edited.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code>composer require pushword\/page-update-notifier\n<\/code><\/pre>\n\n<h2 id=\"configure\">Configure<\/h2>\n\n<p>Add in your current <code>config\/package\/pushword.yaml<\/code> for an App or globall"},{"title":"Static Generator","url":"\/extension\/static-generator","slug":"extension\/static-generator","content":"<p>Generate a static website serve by github pages, apaches with one command or via the <a href=\"https:\/\/pushword.piedweb.com\/extension\/admin\">admin<\/a>.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code class=\"shell\">composer require piedweb\/template-editor\n<\/code><\/pre>\n\n<p>Add Routes<\/p>\n\n<pre><code"},{"title":"Template Editor","url":"\/extension\/template-editor","slug":"extension\/template-editor","content":"<p>Edit view file online in the <a href=\"https:\/\/pushword.piedweb.com\/extension\/admin\">admin<\/a>.<\/p>\n\n<h2 id=\"install\">Install<\/h2>\n\n<pre><code class=\"shell\">composer require pushword\/template-editor\n<\/code><\/pre>\n\n<p>Add Routes<\/p>\n\n<pre><code class=\"yaml\">template_editor:\n resource: '@PushwordTe"},{"title":"The Code Architecture","url":"\/architecture","slug":"architecture","content":"<p>Are you searching for&nbsp;:<\/p>\n\n<ul>\n<li>organizing your own app code<\/li>\n<li>organizing the code for a pushword extension<\/li>\n<\/ul>\n\n<p>Else, you are at the good place.<\/p>\n\n<p>The code for all officially maintained extension and the core is kept in an unique repository adopting the <a href="},{"title":"Configuration","url":"\/configuration","slug":"configuration","content":"<p>Have a look inside <code>config\/packages\/pushword.yaml<\/code>.<\/p>\n\n<p>Try this command to get the up to date configuration's options&nbsp;:<\/p>\n\n<pre><code class=\"shell\">php bin\/console config:dump-reference PushwordCoreBundle\n<\/code><\/pre>\n"},{"title":"Contribution and signaling issues","url":"\/contribute","slug":"contribute","content":"<h2 id=\"signaling-an-issue\">Signaling an issue<\/h2>\n\n<p>Use the <a href=\"https:\/\/github.com\/Pushword\/Pushword\/issues\">github issue tracker<\/a>.<\/p>\n\n<blockquote>\n <p>This project is open source, and as such, the maintainers give their free time to build and maintain the source code\n held within. T"},{"title":"Cookbook","url":"\/cookbook","slug":"cookbook","content":"<h2 id=\"installation-and-personalization\">Installation and Personalization<\/h2>\n\n<h3 id=\"editing-an-entity\">Editing an entity<\/h3>\n\n<p>When you install a new project, entities are installed full featured.\nTo remove default feature or add new one, you just need to edit <code>Entity\/Page.php<\/code>, <"},{"title":"Create an extension","url":"\/create-extension","slug":"create-extension","content":"<p>Each extension is build as a <a href=\"https:\/\/symfony.com\/doc\/current\/bundles.html\">symfony bundle<\/a>.<\/p>\n\n<p>When you know that, you just have to learn how to make a bundle for symfony and you will know how to make an extension for Pushword.<\/p>\n\n<p>There is some simple example like <a href=\"h"},{"title":"Redirect to extensions","url":"\/extension","slug":"extension","content":"<p>Location: \/extensions<\/p>\n"},{"title":"Find your missing feature with a Pushword Extension","url":"\/extensions","slug":"extensions","content":"<ul>\n<li><a href=\"\/extension\/admin\">Admin<\/a>\nCreate, edit, delete Page, Media, User with an interface built on top of Sonata Admin.<\/li>\n<li><a href=\"\/extension\/conversation\">Conversation<\/a>\nExtend your Pushword website with <strong>comments<\/strong>, a <strong>contact<\/strong> form or just an <st"},{"title":"Build modern websites rapidly <br> maintain it as quickly","url":"\/","slug":"homepage","content":"<p>Puswhord is a php <strong>CMS<\/strong> build on top of <strong>Symfony<\/strong> to <strong>rapidly<\/strong> create, manage and maintain <strong>Modern Website(s)<\/strong>.<\/p>\n\n<h2><strong>Edition<\/strong> <br><small>Simple and efficient Admin <\/small><\/h2>\n\n<ul>\n<li>Simple, functionnable and eff"},{"title":"Installation","url":"\/installation","slug":"installation","content":"<p>Supposing composer is installed globally<\/p>\n\n<pre><code><br \/>curl https:\/\/raw.githubusercontent.com\/Pushword\/Pushword\/main\/packages\/installer\/installer &gt;&gt; install-cms &amp;&amp; chmod +x install-cms &amp;&amp; .\/install-cms .\/my-folder\n\n# Valid 'a' to install all recipes&amp;nbsp;!\n\n<\/cod"},{"title":"License and contributors","url":"\/license","slug":"license","content":"<h2 id=\"contributors\">Contributors<\/h2>\n\n<ul>\n<li>Robin from <a href=\"https:\/\/piedweb.com\">PiedWeb<\/a><\/li>\n<\/ul>\n\n<h2 id=\"mit-license\">MIT License<\/h2>\n\n<p>Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software"},{"title":"<s>ROADMAP<\/s> Just TODO and IDEA","url":"\/roadmap","slug":"roadmap","content":"<h3 id=\"documentation\">Documentation<\/h3>\n\n<ul>\n<li>[ ] Create a theme<\/li>\n<li>[ ] Create a navbar and a horizontal menu<\/li>\n<li>[ ] Create a Previous\/Next Link<\/li>\n<\/ul>\n\n<h2 id=\"todo-before-v1\">TODO before v1<\/h2>\n\n<ul>\n<li>[ ] Revoir la gestion des assets<\/li>\n<li>[ ] Revoir install-cms (bin\/c"},{"title":"Find your missing themes with a Pushword Extension","url":"\/themes","slug":"themes","content":"<ul>\n<li>...<\/li>\n<li>...<\/li>\n<li>...<\/li>\n<\/ul>\n\n<p>Add your own extension <a href=\"https:\/\/github.com\/Pushword\/Pushword\/edit\/main\/packages\/docs\/content\/extensions.md\">editing this file on github<\/a>.<\/p>\n"},{"title":"Upgrade Guide","url":"\/upgrade","slug":"upgrade","content":"<p>Smooth way is to use <a href=\"https:\/\/getcomposer.org\">composer<\/a>, a dependency manager for PHP.<\/p>\n\n<p>Run <code>composer update<\/code> and the job is done (almost).<\/p>\n\n<p>If you are doing a major upgrade, find the upgrade guide down there.<\/p>\n\n<h2 id=\"from-piedweb-cms-0-0-86-to-pushword\">"}]
21 changes: 21 additions & 0 deletions docs/sitemap.txt
@@ -0,0 +1,21 @@
https://pushword.piedweb.com/extension/admin
https://pushword.piedweb.com/extension/conversation
https://pushword.piedweb.com/extension/flat
https://pushword.piedweb.com/extension/page-scanner
https://pushword.piedweb.com/extension/page-update-notifier
https://pushword.piedweb.com/extension/static-generator
https://pushword.piedweb.com/extension/template-editor
https://pushword.piedweb.com/search.json
https://pushword.piedweb.com/architecture
https://pushword.piedweb.com/configuration
https://pushword.piedweb.com/contribute
https://pushword.piedweb.com/cookbook
https://pushword.piedweb.com/create-extension
https://pushword.piedweb.com/extension
https://pushword.piedweb.com/extensions
https://pushword.piedweb.com/
https://pushword.piedweb.com/installation
https://pushword.piedweb.com/license
https://pushword.piedweb.com/roadmap
https://pushword.piedweb.com/themes
https://pushword.piedweb.com/upgrade
1 change: 1 addition & 0 deletions docs/themes.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/upgrade.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/skeleton/config/bundles.php
Expand Up @@ -52,6 +52,5 @@

// No need for testing purpose, useful else
//Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
//Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
//Pushword\Conversation\PushwordConversation::class => ['all' => true],
];
3 changes: 3 additions & 0 deletions packages/skeleton/config/packages/routing.yaml
@@ -0,0 +1,3 @@
framework:
router:
strict_requirements: true
6 changes: 6 additions & 0 deletions packages/skeleton/config/packages/web_profiler.yaml
@@ -0,0 +1,6 @@
web_profiler:
toolbar: true
intercept_redirects: false

framework:
profiler: { only_exceptions: false }
10 changes: 10 additions & 0 deletions packages/skeleton/config/routes.yaml
@@ -1,3 +1,13 @@
## Web Profiler
## ------------

_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler

## Extension
## ---------

Expand Down
9 changes: 4 additions & 5 deletions packages/skeleton/public/index.php
Expand Up @@ -13,12 +13,11 @@
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = 'dev';
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] ='1';

if ($_SERVER['APP_DEBUG']) {
umask(0000);

if (class_exists(Debug::class)) {
Debug::enable();
}
umask(0000);

if (class_exists(Debug::class)) {
Debug::enable();
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
Expand Down

0 comments on commit 766aa72

Please sign in to comment.