Skip to content

Commit

Permalink
doc: add config example
Browse files Browse the repository at this point in the history
  • Loading branch information
antiseptikk committed Feb 1, 2021
1 parent 0b4a4a6 commit 90e48f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,22 @@ Installation & usage
$ composer require --dev antiseptikk/dev-kit
```

2. Include a configuration file in your `ecs.php`
2. Create a file named `ecs.php` in the root directory of your project.

```php
<?php
declare(strict_types=1);
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Option;
return static function (ContainerConfigurator $containerConfigurator): void
{
$containerConfigurator->import(__DIR__.'/vendor/antiseptikk/dev-kit/ecs.php');
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::LINE_ENDING, "\n");
};
```
1 change: 0 additions & 1 deletion ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@
use SlevomatCodingStandard\Sniffs\Commenting\InlineDocCommentDeclarationSniff;
use SlevomatCodingStandard\Sniffs\Commenting\RequireOneLinePropertyDocCommentSniff;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use function Symfony\Component\DependencyInjection\Loader\Configurator\ref;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
Expand Down

0 comments on commit 90e48f0

Please sign in to comment.