Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Add some test cases for basic comment support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Nov 25, 2022
1 parent ba28094 commit c67225c
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Intro comment
security:
# Some nice comment 1
encoders: true # inline comment
# Some nice comment 2
other: true # inline comment
-----
<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
// Intro comment
$containerConfigurator->extension('security', [
// Some nice comment 1
'encoders' => true, // inline comment
// Some nice comment 2
'other' => true, // inline comment
]);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Intro comment
parameters:
# Some nice comment
key: 'value' # another comment
-----
<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();

// Some nice comment
$parameters->set('key', 'value');
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Intro comment
services:
# Some nice comment
App\Service: ~ # inline comment
-----
<?php

declare(strict_types=1);

use App\Service;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
// Intro comment
$services = $containerConfigurator->services();

// Some nice comment
$services->set(Service::class); // inline comment
};

0 comments on commit c67225c

Please sign in to comment.