Skip to content

Commit

Permalink
release PHP 7.2 downgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 15, 2024
1 parent 5b19239 commit 9fb4f5a
Show file tree
Hide file tree
Showing 1,227 changed files with 124,795 additions and 3,440 deletions.
9 changes: 0 additions & 9 deletions .editorconfig

This file was deleted.

File renamed without changes.
16 changes: 3 additions & 13 deletions .github/workflows/bare_run.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Bare Run on various PHP versions
name: Bare Run

on:
push:
branches:
- 'main'
on: [pull_request, push]

jobs:
bare_run:
Expand All @@ -23,11 +20,4 @@ jobs:
php-version: ${{ matrix.php_version }}
coverage: none

- run: mkdir nested-dir


- run: composer require symplify/config-transformer --dev --ansi
working-directory: nested-dir

- run: vendor/bin/config-transformer list --ansi
working-directory: nested-dir
- run: php bin/config-transformer list --ansi
7 changes: 0 additions & 7 deletions .gitignore

This file was deleted.

20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Convert Symfony YAML configs to PHP
# Config Format Converter

[![Downloads total](https://img.shields.io/packagist/dt/symplify/config-transformer.svg?style=flat-square)](https://packagist.org/packages/symplify/config-transformer/stats)

<br>
Convert Symfony Config Formats From XML/YAML to PHP.

Why to PHP? It's the best format for PHP Symfony applications:

Expand All @@ -19,16 +19,18 @@ composer require symplify/config-transformer --dev

## Usage

By default, the command uses `/config` directory to transform all files in it:
Provide paths to files/dirs you want to convert:

```bash
vendor/bin/config-transformer
vendor/bin/config-transformer switch-format config/packages/config-transformer.yaml app/config
```

Do you want to convert 1 files or directory at a time? Specify the paths as arguments:
The input file will be deleted automatically.

```bash
vendor/bin/config-transformer convert config/parameters.yml
```
## Report Issues

In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues)

## Contribute

The input files are deleted automatically.
The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify).
3 changes: 2 additions & 1 deletion bin/config-transformer
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env php
<?php
<?php
namespace ConfigTransformerPrefix202401;

require __DIR__ . '/config-transformer.php';
17 changes: 6 additions & 11 deletions bin/config-transformer.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php

declare(strict_types=1);
declare (strict_types=1);
namespace ConfigTransformerPrefix202401;

use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use ConfigTransformerPrefix202401\Symfony\Component\Console\Input\ArgvInput;
use ConfigTransformerPrefix202401\Symfony\Component\Console\Output\ConsoleOutput;
use Symplify\ConfigTransformer\Console\ConfigTransformerApplication;
use Symplify\ConfigTransformer\Kernel\ConfigTransformerContainerFactory;

$possibleAutoloadPaths = [
// dependency
__DIR__ . '/../../../autoload.php',
Expand All @@ -15,25 +15,20 @@
// after split package
__DIR__ . '/../vendor/autoload.php',
];

foreach ($possibleAutoloadPaths as $possibleAutoloadPath) {
if (file_exists($possibleAutoloadPath)) {
if (\file_exists($possibleAutoloadPath)) {
require_once $possibleAutoloadPath;
break;
}
}

$scoperAutoloadFilepath = __DIR__ . '/../vendor/scoper-autoload.php';
if (file_exists($scoperAutoloadFilepath)) {
if (\file_exists($scoperAutoloadFilepath)) {
require_once $scoperAutoloadFilepath;
}

$configTransformerContainerFactory = new ConfigTransformerContainerFactory();
$container = $configTransformerContainerFactory->create();

/** @var ConfigTransformerApplication $configTransformerApplication */
$configTransformerApplication = $container->get(ConfigTransformerApplication::class);

$input = new ArgvInput();
$output = new ConsoleOutput();
$configTransformerApplication->run($input, $output);
52 changes: 0 additions & 52 deletions build/build-scoped.sh

This file was deleted.

19 changes: 0 additions & 19 deletions build/rector-downgrade-php-72.php

This file was deleted.

3 changes: 0 additions & 3 deletions build/target-repository/.github/FUNDING.yml

This file was deleted.

23 changes: 0 additions & 23 deletions build/target-repository/.github/workflows/bare_run.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions build/target-repository/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions build/target-repository/composer.json

This file was deleted.

75 changes: 5 additions & 70 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,76 +1,11 @@
{
"name": "symplify/config-transformer",
"description": "Convert Symfony YAML/XML format to PHP/YAML",
"description": "Prefixed version of Symfony YAML/XML to PHP/YAML config converter",
"license": "MIT",
"bin": [
"bin/config-transformer"
],
"require": {
"php": ">=8.2",
"nette/utils": "^3.2",
"sebastian/diff": "^5.0",
"symfony/config": "^6.4",
"symfony/console": "^6.4",
"symfony/dependency-injection": "6.1.*",
"symfony/expression-language": "^6.4",
"symfony/filesystem": "^6.4",
"symfony/finder": "^6.4",
"symfony/yaml": "^6.4",
"symplify/php-config-printer": "^11.3.7",
"webmozart/assert": "^1.11"
},
"require-dev": {
"cweagans/composer-patches": "^1.7",
"icanhazstring/composer-unused": "0.8.7",
"php-parallel-lint/php-parallel-lint": "^1.3",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"rector/rector": "^0.19",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-extensions": "^11.4",
"symplify/vendor-patches": "^11.3",
"tomasvotruba/class-leak": "^0.2.6"
},
"autoload": {
"psr-4": {
"Symplify\\ConfigTransformer\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Symplify\\ConfigTransformer\\Tests\\": "tests"
}
"php": ">=7.2"
},
"config": {
"sort-packages": true,
"platform-check": false,
"allow-plugins": {
"cweagans/composer-patches": true,
"phpstan/extension-installer": true
}
},
"extra": {
"patches": {
"symfony/dependency-injection": [
"patches/symfony-dependency-injection-loader-yamlfileloader-php.patch",
"patches/symfony-dependency-injection-definition-php.patch"
]
},
"enable-patching": true
},
"replace": {
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/polyfill-php74": "*",
"symfony/polyfill-php80": "*",
"symfony/polyfill-php81": "*",
"symfony/polyfill-php82": "*"
},
"scripts": {
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"rector": "vendor/bin/rector process --dry-run --ansi"
}
"bin": [
"bin/config-transformer"
]
}
Loading

0 comments on commit 9fb4f5a

Please sign in to comment.