Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DI] Remove symfony/dependency-injection dependency #4796

Merged
merged 4 commits into from
Aug 15, 2023

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Aug 15, 2023

Ref #4698

Before

Screenshot from 2023-08-16 01-30-37

After

Screenshot from 2023-08-16 01-31-15

↓

From 2 686 to 2 394 classes πŸ₯³

@TomasVotruba TomasVotruba changed the title remove symfony/dependency-injection and move unused to CI [DI] remove symfony/dependency-injection and move unused to CI Aug 15, 2023
@TomasVotruba TomasVotruba changed the title [DI] remove symfony/dependency-injection and move unused to CI [DI] Remove symfony/dependency-injection depenency Aug 15, 2023
@TomasVotruba TomasVotruba changed the title [DI] Remove symfony/dependency-injection depenency [DI] Remove symfony/dependency-injection dependncy Aug 15, 2023
@TomasVotruba TomasVotruba changed the title [DI] Remove symfony/dependency-injection dependncy [DI] Remove symfony/dependency-injection dependency Aug 15, 2023
@TomasVotruba TomasVotruba merged commit f77cf5a into main Aug 15, 2023
@TomasVotruba TomasVotruba deleted the tv-less-symfony-dpes branch August 15, 2023 23:27
@TomasVotruba
Copy link
Member Author

Resulting build - dropped 32 000 lines πŸ’ͺ rectorphp/rector@acc38e2

Screenshot from 2023-08-16 01-38-06

@rvanlaak
Copy link

rvanlaak commented Aug 21, 2023

In order to determine the diff; given this PR solely is because of the removal, do we also have any idea how many lines were added because of the Laravel container?

@TomasVotruba
Copy link
Member Author

Depends what you try to compare. The Laravel container package was added in #4106, 1,5 month ago. This PR results in this diff: rectorphp/rector@9e10326

The container package itself:

 vendor/bin/lines measure vendor/illuminate/container --short

Shows 1090 lines of code:

 ------------------------------ --------------------- 
  Metric                                       Count  
 ------------------------------ --------------------- 
  Directories                                      0  
  Files                                            6  
 ------------------------------ --------------------- 

 ------------------------------ ---------- ---------- 
  Lines of code                     Count   Relative  
 ------------------------------ ---------- ---------- 
  Code                              1 090       56 %  
  Comments                            855       44 %  
  Total                             1 945      100 %  
 ------------------------------ ---------- ---------- 

@TomasVotruba
Copy link
Member Author

The same for Symfony would be:

vendor/bin/lines measure vendor/symfony/dependency-injection --short

↓

  Filesystem                                         count  
  Directories ......................................... 14  
  Files .............................................. 186  

  Lines of code                           count / relative  
  Code ................................... 17 694 /   79 %  
  Comments ................................ 4 698 /   21 %  
  Total .................................. 22 392 /  100 %  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants