Completed
Push — master ( a62be2...5c6fe5 )
by Alexander
01:07 queued 21s
created

PropelConfig::isSharedLoggerEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Spryker Commerce OS.
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
declare(strict_types = 1);
9
10
namespace Pyz\Zed\Propel;
11
12
use Spryker\Zed\Propel\PropelConfig as SprykerPropelConfig;
13
14
class PropelConfig extends SprykerPropelConfig
15
{
16
    /**
17
     * @return list<string>
18
     */
19
    public function getProjectPropelSchemaPathPatterns(): array
20
    {
21
        return array_merge(
0 ignored issues
show
Bug Best Practice introduced by
The expression return array_merge(array...elSchemaPathPatterns()) returns the type array which is incompatible with the documented return type Pyz\Zed\Propel\list.
Loading history...
22
            [APPLICATION_SOURCE_DIR . '/*/Zed/*/Persistence/Propel/Schema/'],
23
            parent::getProjectPropelSchemaPathPatterns(),
24
        );
25
    }
26
27
    /**
28
     * Specification:
29
     * - If true, adds additional shared logger that will send all Propel logs to the same destination as regular logs.
30
     *
31
     * @api
32
     *
33
     * @return bool
34
     */
35
    public function isSharedLoggerEnabled(): bool
36
    {
37
        return true;
38
    }
39
}
40