-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from CPS-IT/task/config-notice
[TASK] View notice about required configuration in backend module
- Loading branch information
Showing
5 changed files
with
136 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the TYPO3 CMS extension "mailqueue". | ||
* | ||
* Copyright (C) 2024 Elias Häußler <e.haeussler@familie-redlich.de> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
namespace CPSIT\Typo3Mailqueue\Exception; | ||
|
||
/** | ||
* MailTransportIsNotConfigured | ||
* | ||
* @author Elias Häußler <e.haeussler@familie-redlich.de> | ||
* @license GPL-2.0-or-later | ||
*/ | ||
final class MailTransportIsNotConfigured extends Exception | ||
{ | ||
public function __construct() | ||
{ | ||
parent::__construct( | ||
'No mail transport is configured. Please provide mail configuration in $GLOBALS[\'TYPO3_CONF_VARS\'][\'MAIL\'].', | ||
1709803814, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
xmlns:c="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers" | ||
data-namespace-typo3-fluid="true"> | ||
|
||
<f:be.infobox state="2" | ||
title="{f:translate(key: 'alert.unsupportedTransport.title', extensionName: 'Mailqueue')}" | ||
message="{f:translate(key: 'alert.unsupportedTransport.message', arguments: '{0: transport}', extensionName: 'Mailqueue')}" | ||
/> | ||
|
||
<f:variable name="docsLink"><f:spaceless> | ||
<a href="https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Mail/Index.html#spooling" | ||
target="_blank" | ||
rel="noreferrer" | ||
>{f:translate(key: 'unsupportedTransport.docs.linkText', extensionName: 'Mailqueue')}</a> | ||
</f:spaceless></f:variable> | ||
|
||
<p> | ||
{f:translate(key: 'unsupportedTransport.docs.text', extensionName: 'Mailqueue', arguments: '{0: docsLink}') -> f:format.raw()} | ||
</p> | ||
|
||
<div class="card"> | ||
<div class="card-header"> | ||
<div class="card-icon"> | ||
<c:icon identifier="actions-file-edit" /> | ||
</div> | ||
<div class="card-header-body"> | ||
<h2 class="card-title">{f:translate(key: 'unsupportedTransport.example.header', extensionName: 'Mailqueue')}</h2> | ||
</div> | ||
</div> | ||
<div class="card-body"> | ||
<pre><code><f:spaceless> | ||
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport_spool_type'] = 'file'; | ||
$GLOBALS['TYPO3_CONF_VARS']['MAIL']['transport_spool_filepath'] = '/path/to/mailqueue'; | ||
</f:spaceless></code></pre> | ||
</div> | ||
<div class="card-footer"> | ||
<f:if condition="{typo3Version} >= 12"> | ||
<f:then> | ||
<code>config/system/additional.php</code> | ||
</f:then> | ||
<f:else> | ||
<f:comment><!-- @todo Remove once support for TYPO3 v11 is dropped --></f:comment> | ||
<code>typo3conf/AdditionalConfiguration.php</code> | ||
</f:else> | ||
</f:if> | ||
</div> | ||
</div> | ||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters