Skip to content

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

Merged
TomasVotruba merged 4 commits intomainfrom
tv-less-symfony-dpes
Aug 15, 2023
Merged

[DI] Remove symfony/dependency-injection dependency#4796
TomasVotruba merged 4 commits intomainfrom
tv-less-symfony-dpes

Conversation

@TomasVotruba
Copy link
Copy Markdown
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
Copy Markdown
Member Author

Resulting build - dropped 32 000 lines 💪 rectorphp/rector@acc38e2

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

@rvanlaak
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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