Skip to content

Commit 3650e22

Browse files
authored
Merge pull request #262 from dotkernel/develop
Develop
2 parents 4868c87 + c799aea commit 3650e22

120 files changed

Lines changed: 1637 additions & 390 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎composer.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"doctrine/data-fixtures": "^2.2",
3333
"doctrine/doctrine-fixtures-bundle": "^4.3",
3434
"dotkernel/dot-cache": "^4.0",
35+
"dotkernel/dot-dependency-injection": "^1.4",
3536
"dotkernel/dot-errorhandler": "^5.0.0",
37+
"dotkernel/dot-mail": "^5.4",
3638
"dotkernel/dot-response-header": "^3.6",
3739
"laminas/laminas-component-installer": "^3.5.0",
3840
"laminas/laminas-config-aggregator": "^1.17.0",

‎config/autoload/local.php.dist‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ return [
8383
'sitemap' => [
8484
'path' => realpath(__DIR__ . '/../../public/sitemap.xml'),
8585
],
86-
// `dotkernel-packages-oss-lifecycle` is intentionally absent: it has a dedicated handler
87-
// and is routed in Light\App\RoutesDelegator. Re-adding it here registers the path twice.
86+
// `dotkernel-packages-oss-lifecycle` and `contact` are intentionally absent: they have dedicated
87+
// handlers and are routed in Light\App\RoutesDelegator. Re-adding them here registers the path twice.
8888
'routes' => [
8989
'page' => [
9090
// Linked from the footer on every page, so this route must stay registered.
9191
'about' => 'about',
92-
'contact' => 'contact',
9392
'api' => 'api',
9493
'admin' => 'admin',
9594
'queue' => 'queue',

‎config/autoload/mail.global.php‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$contactEmail = 'example@mail.com';
6+
7+
return [
8+
'dot_mail' => [
9+
'contact' => [
10+
'message_options' => [
11+
'from' => $contactEmail,
12+
'from_name' => 'Dotkernel',
13+
'to' => [$contactEmail],
14+
'subject' => 'New contact form submission',
15+
'body' => [
16+
'content' => '',
17+
'charset' => 'utf-8',
18+
],
19+
'attachments' => [
20+
'files' => [],
21+
'dir' => [
22+
'iterate' => false,
23+
'path' => 'data/mail/attachments',
24+
'recursive' => false,
25+
],
26+
],
27+
],
28+
'transport' => 'sendmail',
29+
],
30+
'log' => [
31+
'sent' => getcwd() . '/log/mail-sent.log',
32+
],
33+
],
34+
'twig' => [
35+
'globals' => [
36+
'contact_email' => $contactEmail,
37+
],
38+
],
39+
];

‎config/config.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
\Mezzio\Twig\ConfigProvider::class,
2626

2727
// Dotkernel packages
28+
\Dot\DependencyInjection\ConfigProvider::class,
2829
\Dot\ErrorHandler\ConfigProvider::class,
2930
\Dot\Log\ConfigProvider::class,
31+
\Dot\Mail\ConfigProvider::class,
3032
\Dot\Cache\ConfigProvider::class,
3133
\Dot\ResponseHeader\ConfigProvider::class,
3234

‎public/.htaccess‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RedirectMatch 404 ^/(wp-login\.php|wp-admin|wp-content|wp-includes|xmlrpc\.php)
66
# Block known spam/probe queries on any URL -> 404
77
RewriteCond %{REQUEST_URI} ^/
88
RewriteCond %{QUERY_STRING} ^post_type=wfacp_checkout$ [OR]
9+
RewriteCond %{QUERY_STRING} (^|&)feed= [OR]
910
RewriteCond %{QUERY_STRING} rest_route
1011
RewriteRule .* - [R=404,L]
1112

‎public/css/contact.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/images/app/stack/ddev.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎public/images/app/stack/docker.svg‎

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

‎public/images/app/stack/wsl2.svg‎

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)