-
-
Save napestershine/b8a571e8e85d246f100a745d1b217ba5 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace App; | |
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; | |
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | |
use Symfony\Component\HttpKernel\Kernel as BaseKernel; | |
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; | |
class Kernel extends BaseKernel | |
{ | |
use MicroKernelTrait; | |
protected function configureContainer(ContainerConfigurator $container): void | |
{ | |
$container->import('../config/{packages}/*.yaml'); | |
$container->import('../config/{packages}/'.$this->environment.'/*.yaml'); | |
if (is_file(\dirname(__DIR__).'/config/services.yaml')) { | |
$container->import('../config/{services}.yaml'); | |
$container->import('../config/{services}_'.$this->environment.'.yaml'); | |
} elseif (is_file($path = \dirname(__DIR__).'/config/services.php')) { | |
(require $path)($container->withPath($path), $this); | |
} | |
} | |
protected function configureRoutes(RoutingConfigurator $routes): void | |
{ | |
$routes->import('../config/{routes}/'.$this->environment.'/*.yaml'); | |
$routes->import('../config/{routes}/*.yaml'); | |
if (is_file(\dirname(__DIR__).'/config/routes.yaml')) { | |
$routes->import('../config/{routes}.yaml'); | |
} elseif (is_file($path = \dirname(__DIR__).'/config/routes.php')) { | |
(require $path)($routes->withPath($path), $this); | |
} | |
} | |
} |
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
<?xml version="1.0"?> | |
<ruleset name="IndienEssen ruleset" | |
xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
<description> | |
Ruleset for IndienEssen modules | |
</description> | |
<rule ref="rulesets/cleancode.xml"> | |
<exclude name="StaticAccess"/> | |
<exclude name="ElseExpression"/> | |
<exclude name="MissingImport"/> | |
</rule> | |
<rule ref="rulesets/codesize.xml"> | |
<exclude name="TooManyFields"/> | |
</rule> | |
<rule ref="rulesets/controversial.xml"> | |
<exclude name="Superglobals"/> | |
</rule> | |
<rule ref="rulesets/design.xml"> | |
<exclude name="ExitExpression"/> | |
<exclude name="CouplingBetweenObjects" /> | |
</rule> | |
<rule ref="rulesets/design.xml/CouplingBetweenObjects"> | |
<properties> | |
<property name="maximum" value="20"/> | |
</properties> | |
</rule> | |
<rule ref="rulesets/naming.xml"> | |
<exclude name="LongVariable"/> | |
<exclude name="ShortVariable"/> | |
</rule> | |
<rule ref="rulesets/unusedcode.xml"> | |
<exclude name="UnusedFormalParameter"/> | |
</rule> | |
<exclude-pattern>src/Migrations/*</exclude-pattern> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment