Re-use fetched dependencies in lib/base.php
Reduces calls to DI container by reusing already fetched dependencies.
For status.php it went from 355 to 344.
Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
Showing
- apps/files_sharing/tests/DeleteOrphanedSharesJobTest.php 1 addition, 1 deletionapps/files_sharing/tests/DeleteOrphanedSharesJobTest.php
- apps/files_sharing/tests/ExpireSharesJobTest.php 1 addition, 1 deletionapps/files_sharing/tests/ExpireSharesJobTest.php
- apps/files_sharing/tests/TestCase.php 2 additions, 2 deletionsapps/files_sharing/tests/TestCase.php
- apps/files_trashbin/tests/TrashbinTest.php 1 addition, 1 deletionapps/files_trashbin/tests/TrashbinTest.php
- apps/files_versions/tests/VersioningTest.php 1 addition, 1 deletionapps/files_versions/tests/VersioningTest.php
- lib/base.php 37 additions, 39 deletionslib/base.php
- public.php 1 addition, 1 deletionpublic.php
- tests/lib/Share/ShareTest.php 1 addition, 1 deletiontests/lib/Share/ShareTest.php
Loading
Please register or sign in to comment