2017 © Pedro PelĆ”ez
 

application symfony-upgrade-fixer

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

image

umpirsky/symfony-upgrade-fixer

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  • Friday, February 16, 2018
  • by umpirsky
  • Repository
  • 9 Watchers
  • 247 Stars
  • 19,368 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 13 Forks
  • 13 Open issues
  • 11 Versions
  • 5 % Grown

The README.md

symfony upgrade fixer ā€¢ twig gettext extractor ā€¢ wisdom ā€¢ centipede ā€¢ permissions handler ā€¢ extraload ā€¢ gravatar ā€¢ locurro ā€¢ country list ā€¢ transliterator , (*1)

Symfony Upgrade Fixer Build Status

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework., (*2)

Installation

Manual

Local

Download the symfony-upgrade-fixer.phar file and store it somewhere on your computer., (*3)

Global

You can run these commands to easily access symfony-upgrade-fixer from anywhere on your system:, (*4)

$ sudo wget https://github.com/umpirsky/Symfony-Upgrade-Fixer/releases/download/v0.1.6/symfony-upgrade-fixer.phar -O /usr/local/bin/symfony-upgrade-fixer
$ sudo chmod a+x /usr/local/bin/symfony-upgrade-fixer

Then, just run symfony-upgrade-fixer., (*5)

Composer

Local

$ composer require umpirsky/symfony-upgrade-fixer

Global

$ composer global require umpirsky/symfony-upgrade-fixer

Make sure you have ~/.composer/vendor/bin in your PATH and you're good to go:, (*6)

$ export PATH="$PATH:$HOME/.composer/vendor/bin"

Don't forget to add this line in your .bashrc file if you want to keep this change after reboot., (*7)

Usage

The fix command tries to fix as much upgrade issues as possible on a given file or directory:, (*8)

$ symfony-upgrade-fixer fix /path/to/dir
$ symfony-upgrade-fixer fix /path/to/file

The --dry-run option displays the files that need to be fixed but without actually modifying them:, (*9)

$ symfony-upgrade-fixer fix /path/to/code --dry-run

The --no-use-reorder option prevents the fixer from re-ordering USE statements:, (*10)

$ symfony-upgrade-fixer fix /path/to/code --no-use-reorder

The --fixers option allows to specify which fixers should be used:, (*11)

$ symfony-upgrade-fixer fix /path/to/code --fixers=get_request,form_events,property_access

Fixers available

Name Description
form_configure_options The method AbstractType::setDefaultOptions(OptionsResolverInterface $resolver) have been renamed to AbstractType::configureOptions(OptionsResolver $resolver).
form_events The events PRE_BIND, BIND and POST_BIND were renamed to PRE_SUBMIT, SUBMIT and POST_SUBMIT.
form_getname_to_getblockprefix The method FormTypeInterface::getName() was deprecated, you should now implement FormTypeInterface::getBlockPrefix() instead.
form_option_names Options precision and virtual was renamed to scale and inherit_data.
form_parent_type Returning type instances from FormTypeInterface::getParent() is deprecated, return the fully-qualified class name of the parent type class instead.
form_type_names Instead of referencing types by name, you should reference them by their fully-qualified class name (FQCN) instead.
form_extension_get_extended_type Instead of referencing extended types by name, you should reference them by their fully-qualified class name (FQCN) instead.
get_request The getRequest method of the base controller class was removed, request object is injected in the action method instead.
inherit_data_aware_iterator The class VirtualFormAwareIterator was renamed to InheritDataAwareIterator.
progress_bar ProgressHelper has been removed in favor of ProgressBar.
property_access Renamed PropertyAccess::getPropertyAccessor to PropertyAccess::createPropertyAccessor.

Real Life Examples

It is tested against few cool Symfony projects:, (*12)

Contribute

The tool is based on PHP Coding Standards Fixer and the contributing process is very similar. I see no sense in re-doing it so far., (*13)

If you want to contribute to README, please don't edit README.md directly - it is autogenerated. Edit README.tpl instead and run:, (*14)

$ symfony-upgrade-fixer readme > README.md

The Versions

16/02 2018

dev-master

9999999-dev

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/03 2017

v0.1.6

0.1.6.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/07 2016

v0.1.5

0.1.5.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

04/04 2016

v0.1.4

0.1.4.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/12 2015

dev-fix/update-deps

dev-fix/update-deps

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

03/12 2015

v0.1.3

0.1.3.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/11 2015

v0.1.2

0.1.2.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/11 2015

dev-feature/get-request-fixer

dev-feature/get-request-fixer

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/11 2015

v0.1.1

0.1.1.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

15/11 2015

dev-fix/readme-generation

dev-fix/readme-generation

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/11 2015

v0.1.0

0.1.0.0

Analyzes your Symfony project and tries to make it compatible with the new version of Symfony framework.

  Sources   Download

MIT

The Requires

 

The Development Requires