before recipes:update
This commit is contained in:
.eslintrccomposer.jsoncomposer.lockpackage.jsonrector.php
assets
images
js
App.vue
components
AppLink.vueHandleLogout.vueLoginForm.vueNotFound.vueTheFooter.vueTheNavbar.vueTheSidebar.vuefooter.vuelogin.vuenot-found.vue
index.jspages
projects
quotes
sidebar.vuetabs
users
router
styles
src
Controller
Entity
Repository
Security
templates
webpack.config.jsyarn.lock
26
rector.php
26
rector.php
@ -3,19 +3,21 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Core\Configuration\Option;
|
||||
use Rector\Set\ValueObject\LevelSetList;
|
||||
use Symfony\Flex\Configurator\ContainerConfigurator;
|
||||
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->paths(paths: [
|
||||
__DIR__ . '/src'
|
||||
]);
|
||||
return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
// region Symfony Container
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$parameters->set(
|
||||
Option::SYMFONY_CONTAINER_XML_PATH_PARAMETER,
|
||||
__DIR__ . '/var/cache/dev/App_KernelDevDebugContainer.xml'
|
||||
);
|
||||
// endregion
|
||||
|
||||
// register a single rule
|
||||
$rectorConfig->rule(rectorClass: InlineConstructorDefaultToPropertyRector::class);
|
||||
|
||||
// define sets of rules
|
||||
// $rectorConfig->sets([
|
||||
// LevelSetList::UP_TO_PHP_80
|
||||
// ]);
|
||||
|
||||
$containerConfigurator->import(DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES);
|
||||
$containerConfigurator->import(SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES);
|
||||
$containerConfigurator->import(SensiolabsSetList::FRAMEWORK_EXTRA_61);
|
||||
};
|
||||
|
Reference in New Issue
Block a user