Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@
"ext-dom": "*",
"doctrine/data-fixtures": "^2.2",
"doctrine/doctrine-fixtures-bundle": "^4.3",
"dotkernel/dot-errorhandler": "^5.0.0",
"dotkernel/dot-cache": "^4.0",
"ramsey/uuid": "^4.5.0",
"ramsey/uuid-doctrine": "^2.1.0",
"roave/psr-container-doctrine": "^5.2.2 || ^6.0.0",
"dotkernel/dot-errorhandler": "^5.0.0",
"dotkernel/dot-response-header": "^3.6",
"laminas/laminas-component-installer": "^3.5.0",
"laminas/laminas-config-aggregator": "^1.17.0",
"mezzio/mezzio": "^3.24.0",
"mezzio/mezzio-fastroute": "^3.13.0",
"mezzio/mezzio-twigrenderer": "^2.17.0"
"mezzio/mezzio-twigrenderer": "^2.17.0",
"ramsey/uuid": "^4.5.0",
"ramsey/uuid-doctrine": "^2.1.0",
"roave/psr-container-doctrine": "^5.2.2 || ^6.0.0"
},
"require-dev": {
"filp/whoops": "^2.17.0",
Expand Down
20 changes: 14 additions & 6 deletions config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,33 @@ $app = [
];

return [
'application' => $app,
'databases' => $databases,
'doctrine' => [
'application' => $app,
'databases' => $databases,
'dot_response_headers' => [
'*' => [
'X-Powered-By' => [
'value' => $app['meta']['siteName'],
'overwrite' => true,
],
],
],
'doctrine' => [
'connection' => [
'orm_default' => [
'params' => $databases['default'],
],
],
],
'feed' => [
'feed' => [
'path' => realpath(__DIR__ . '/../../public/feed.xml'),
],
'routes' => [
'routes' => [
'page' => [
'contact' => 'contact',
'dotkernel-packages-oss-lifecycle' => 'dotkernel-packages-oss-lifecycle',
],
],
'twig' => [
'twig' => [
'globals' => [
'app' => $app,
],
Expand Down
1 change: 1 addition & 0 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
\Dot\ErrorHandler\ConfigProvider::class,
\Dot\Log\ConfigProvider::class,
\Dot\Cache\ConfigProvider::class,
\Dot\ResponseHeader\ConfigProvider::class,

// Default App module config
\Light\App\ConfigProvider::class,
Expand Down
2 changes: 2 additions & 0 deletions config/pipeline.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

use Dot\ErrorHandler\ErrorHandlerInterface;
use Dot\ResponseHeader\Middleware\ResponseHeaderMiddleware;
use Mezzio\Application;
use Mezzio\Handler\NotFoundHandler;
use Mezzio\Helper\ServerUrlMiddleware;
Expand Down Expand Up @@ -40,6 +41,7 @@
// Register the routing middleware in the middleware pipeline.
// This middleware registers the Mezzio\Router\RouteResult request attribute.
$app->pipe(RouteMiddleware::class);
$app->pipe(ResponseHeaderMiddleware::class);

// The following handle routing failures for common conditions:
// - HEAD request but no routes answer that method
Expand Down
14 changes: 8 additions & 6 deletions src/App/templates/app/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@
Three deployables that scale independently and never disagree about the domain.</p>
</div>

<div class="core-band">
<span class="core-band-label">Shared domain layer</span>
<code>Core\App</code> <code>Core\Admin</code> <code>Core\User</code>
<code>Core\Security</code> <code>Core\Setting</code>
<p>One set of entities and repository. Committed in each repo so a single-component start just works — lift it into its own repo and share it as a Git submodule when you add a second.</p>
</div>


<div class="core-band">
<span class="core-band-label">Shared domain layer</span>
<code>Core\App</code> <code>Core\Admin</code> <code>Core\User</code>
<code>Core\Security</code> <code>Core\Setting</code>
<p>One set of entities and repository. Committed in each repo so a single-component start just works — lift it into its own repo and share it as a Git submodule when you add a second.</p>
</div>

<div class="products-grid">

Expand Down
10 changes: 5 additions & 5 deletions src/App/templates/partial/meta.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<meta name="msapplication-TileColor" content="#2d89ef">
<meta name="theme-color" content="#ffffff">
<title>{{ meta.title ?? meta.name ?? app.meta.title }}</title>
<meta name="description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description) }}"/>
<meta name="description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description)|slice(0, 155) }}"/>
<meta property="og:title" content="{{ meta.title ?? app.meta.title }}"/>
<meta property="og:description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description)}}"/>
<meta property="og:description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description)|slice(0, 120) }}"/>
<meta property="og:image" content="{{ meta.image ?? app.meta.image }}"/>
<meta property="og:type" content="{{ meta.type ?? app.meta.type }}"/>
<meta property="og:site_name" content="{{ app.meta.title }}"/>
<meta property="og:url" content="{{ meta.url ?? (routeName is defined and routeName ? url(routeName) : app.baseUrl) }}"/>
<meta property="og:site_name" content="{{ app.meta.siteName }}"/>
<meta property="og:url" content="{{ meta.url ?? (routeName is defined and routeName ? url(routeName) : app.meta.url) }}"/>
<meta property="og:locale" content="{{ app.meta.locale }}"/>
<meta name="twitter:card" content="{{ app.meta.twitterCard }}"/>
<meta name="twitter:site" content="{{ app.meta.twitterSite }}"/>
<meta name="twitter:title" content="{{ meta.title ?? meta.name ?? app.meta.title }}"/>
<meta name="twitter:description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description) }}"/>
<meta name="twitter:description" content="{{ (meta.description ?? meta.excerpt ?? app.meta.description)|slice(0, 155) }}"/>
<meta name="twitter:image" content="{{ meta.image ?? app.meta.image }}"/>