Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Arthur Schiwon
38a90130ce
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
8 years ago
Morris Jobke
5819e5e5b3
Make lib/autoloader.php strictly typed and properly type hinted
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
31c5c2a592
Change @georgehrke's email
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Roeland Jago Douma
1565177fb5
Revert "Add a magic wrapper to allow phpunit4 to run the code again "
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
9 years ago
Joas Schilling
e76ef9aaa8
Add a magic wrapper from hell to allow phpunit4 to run the code again
Remove this once phpunit 5 is the lowest supported version, by reverting:
https://github.com/nextcloud/server/pull/2137
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
802be173da
\OCP is handled by composer autoloader
10 years ago
Joas Schilling
94ad54ec9b
Move tests/ to PSR-4 ( #24731 )
* Move a-b to PSR-4
* Move c-d to PSR-4
* Move e+g to PSR-4
* Move h-l to PSR-4
* Move m-r to PSR-4
* Move s-u to PSR-4
* Move files/ to PSR-4
* Move remaining tests to PSR-4
* Remove Test\ from old autoloader
10 years ago
Joas Schilling
f8180391fd
Create a Fallback in the old autoloader for PSR-4 Test\TestCase
10 years ago
Joas Schilling
ffa4633822
No more Test_* files exist, remove autoloading
10 years ago
Roeland Jago Douma
a037c10c88
All \OC\ classes are handled by the composer autoloader
10 years ago
Roeland Jago Douma
5a5a5b2032
OC_xx all live in the legacy folder
10 years ago
Lukas Reschke
5a0c936f99
Remove OC/Settings from old autoloader
10 years ago
Lukas Reschke
c952adabb5
Remove OC/Core autoloading from old autoloader
10 years ago
Lukas Reschke
8e72e51b21
Dont double load class
If the class already exists we should not load it twice. Since the composer autoloader is also used in core this could otherwise load a file twice.
This leads to problems otherwise with case insensitive operating systems like OS X. We can get rid of this once all file names in OC follow PSR-4, until then we probably need this check.
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Morris Jobke
604897945b
Move lib/repair to lib/private/repair
10 years ago
Vincent Petry
17ce120736
Revert "Dont bother with stream_resolve_include_path if the path is already absolute"
10 years ago
Robin Appelman
50474c6041
Dont bother with stream_resolve_include_path if the path is already absolute
10 years ago
Roeland Jago Douma
0bb5eadf89
[autoloader] Make sure to load construct full paths
This reduces a lot of the autoloader magic and makes sure that we
generate full paths in the autoloader.
10 years ago
Lukas Reschke
8f09d5b67c
Update license headers
10 years ago
Lukas Reschke
ff1271c7f3
Remove dead code
Those variables are never written to. Thus this is dead code which should be removed.
10 years ago
Morris Jobke
8366ce2767
deduplicate @xenopathic
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Robin McCorkell
862afd80b3
Restore loadApp() autoload registration
Also changes the autoloader validRoots into a hashmap to try and reduce
duplicate entries
10 years ago
Robin McCorkell
0fac2e3f3a
Unique exception for invalid autoload paths, better handling
Background jobs are tolerant of stale entries left by disabled apps,
which will cause an autoload exception.
11 years ago
Robin McCorkell
895e633732
Resolve autoloader valid roots before checking
Allows symlinked app directories to work properly
11 years ago
Robin Appelman
01dcf7f32c
Show the path as part of the exception for not allowed autoloading paths
11 years ago
Robin Appelman
e9b91b1798
verify the path in the autoloader
11 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Adam Williamson
0e3f2055d2
use Composer autoloader not OC for non-Composer 3rdparty ( #9643 )
Composer's autoloader is rather better than the OwnCloud autoloader's
handling of non-OC classes. Plus we can rely on upstream Composer to
maintain it and not worry about it ourselves.
With this change, we drop the bits of OwnCloud's autoloader that
handled non-OC classes, and register the classes that were being
handled by that code with Composer's autoloader instead. As these
dependencies are converted to actually being managed by Composer,
the explicit registrations can be dropped as they won't be needed
any more.
Since OwnCloud's autoloader isn't going to handle non-OC classes any
more, we no longer need to test to make sure it does it right.
drop unneeded registerPrefix() and registerClass() from autoloader
Now we're not handling anything but OC's own classes, these are
unnecessary.
error out if composer autoloader is not found (thanks bantu)
We're never going to be able to work without the autoloader, if it's not
there we should just throw our hands up and surrender.
12 years ago
Georg Ehrke
498aa66648
add additional type check
12 years ago
Georg Ehrke
2c00ab13cf
update autoloader
12 years ago
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
12 years ago
Andreas Fischer
c85cc13d1a
Allow null as cache parameter (if no cache was found) and for cache removal.
12 years ago
Andreas Fischer
dde832b76c
Only write-back on cache miss.
12 years ago
Andreas Fischer
eb6637682e
Inject memoryCache into Autoloader. Remove recursion-prevention hack.
12 years ago
Victor Dubiniuk
5bb4330ea4
Fix autoloader regression
12 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
12 years ago
Thomas Müller
5ae4d67540
in case the cache cannot be initialized within the autoloader we just shoul not use it
12 years ago
Markus Goetz
aba64a0b81
Class Auto Loader: Cache paths in APC
Using benchmark_single.php (from administration repo) I can
measure a speed improvement of 5% to 20% loading the /index.php
when logged in. (when using APC and php-fpm).
13 years ago
Thomas Mueller
988b539dd7
Let's just use '/' as we do almost everywhere - this change fixes two failing unit tests
13 years ago
Robin Appelman
71fc4a2cf4
Autoloader: fix loading app clases located in lib/
13 years ago
Robin Appelman
2a01d39940
Autoloader: load the 3rdparty libraries using prefixes
13 years ago