Skip to content

Commit b1a3a9b

Browse files
authored
add email log resolver (#61)
1 parent 61a593f commit b1a3a9b

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

src/Models/Tool/EmailLogResolver.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
17+
namespace Pimcore\Bundle\StaticResolverBundle\Models\Tool;
18+
19+
use Pimcore\Model\Tool\Email\Log;
20+
21+
/**
22+
* @internal
23+
*/
24+
final class EmailLogResolver implements EmailLogResolverInterface
25+
{
26+
public function getById(int $id): ?Log
27+
{
28+
return Log::getById($id);
29+
}
30+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
/**
5+
* Pimcore
6+
*
7+
* This source file is available under two different licenses:
8+
* - GNU General Public License version 3 (GPLv3)
9+
* - Pimcore Commercial License (PCL)
10+
* Full copyright and license information is available in
11+
* LICENSE.md which is distributed with this source code.
12+
*
13+
* @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
14+
* @license http://www.pimcore.org/license GPLv3 and PCL
15+
*/
16+
17+
namespace Pimcore\Bundle\StaticResolverBundle\Models\Tool;
18+
19+
use Pimcore\Model\Tool\Email\Log;
20+
21+
interface EmailLogResolverInterface
22+
{
23+
public function getById(int $id): ?Log;
24+
}

0 commit comments

Comments
 (0)