summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/utility
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\AppFramework to PSR-4Roeland Jago Douma2016-04-223-324/+0
| | | | * Also moved the autoloader setup a bit up since we need it in initpaths
* Happy new year!Thomas Müller2016-01-123-6/+5
|
* prefer scalar type hints over phpdoc annotationBernhard Posselt2015-12-241-10/+12
| | | | | | use method exists lookup to be safe and not break on old hhvm versions add test that checks if type hint is preferred over annotation
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-2/+0
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* update licence headers via scriptMorris Jobke2015-10-051-1/+1
|
* Fix type hint errors in the container and the interfaceJoas Schilling2015-09-231-2/+2
|
* make resolve public to avoid boiler plate codeBernhard Posselt2015-09-131-1/+1
| | | | add resolve to public interface
* Merge pull request #17982 from owncloud/appframework-sanitize-nameThomas Müller2015-08-121-0/+10
|\ | | | | Sanitize class names before registerService/query
| * Sanitize class names before registerService/queryRobin McCorkell2015-07-301-0/+10
| | | | | | | | | | Leading backslashes are removed, so a `registerService('\\OC\\Foo')` can still be resolved with `query('OC\\Foo')`.
* | add test for factoriesBernhard Posselt2015-07-251-1/+1
|/ | | | | | | | | | use ref for factory test use a factory for registerAlias Ensure we construct SimpleContainer Use single instance of DIContainer in routing tests
* add registerAlias method to shorcut interface registrationBernhard Posselt2015-07-181-11/+30
| | | | | | | | remove unused import add since tag fix typo
* update license headers and authorsMorris Jobke2015-06-252-1/+2
|
* Allow multiple whitespace in type hints in AppFrameworkRobin McCorkell2015-06-201-1/+1
| | | | | | Type hints such as `@param bool $doSomething` will now correctly get parsed, allowing for alignment of docblock parameters if the app developer so wishes.
* Fix visibility of public API methodsJoas Schilling2015-04-201-2/+2
|
* Update license headersJenkins for ownCloud2015-03-263-38/+44
|
* Revert "Updating license headers"Morris Jobke2015-02-263-42/+43
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Merge pull request #14427 from owncloud/fix-some-php-docsBernhard Posselt2015-02-231-3/+4
|\ | | | | Fix some PHPDocs
| * Fix some PHPDocsLukas Reschke2015-02-231-3/+4
| |
* | Updating license headersJenkins for ownCloud2015-02-233-43/+42
|/
* Intelligent containerBernhard Posselt2014-12-231-1/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolves dependencies by type hint or variable name * simpler route.php * implementation of https://github.com/owncloud/core/issues/12829 Generates and injects parameters automatically. You can now build full classes like $c->query('MyClassName') without having to register it as a service. The resolved object's instance will be saved by using registerService. If a constructor parameter is not type hinted, the parameter name will be taken. Therefore the following two implementations are identical: class Class1 { function __construct(MyClassName $class) class Class1 { function __construct($MyClassName) This makes it possible to also inject primitive values such as strings, arrays etc. In addition if the query could not be resolved, a `QueryException` is now thrown Routes can now be returned as an array from `routes.php` and an `appinfo/application.php` is optional Old commit messages: make it possible to return the routes instead of having to intialize the application try to get the controller by convention add first implementation of automatic resolve add another test just to be sure store the resolved object more tests add phpdoc to public app.php method use the same variable for the public app.php method deprecate old methods and add services for public interfaces deprecated getServer method disallow private api injection for apps other than core or settings (settings should be an app goddamnit :D) register userid because its such an often used variable fix indention and leading slash use test namespace add deprecation reasons, remove private api usage checks and remove deprecation from getServer() add additional public interfaces add public interface for rootfolder fix syntax error remove deprecation from methods where no alternative is there yet remove deprecated from method which has no alternative add timezone public service for #12881 add another deprecation hint move deprecation into separate branch remove dead comment first try to get the namespace from the info.xml, if it does not exist, just uppercase the first letter also trim the namespace name add an interface for timefactory move timefactory to public and add icontrollermethodreflector keep core interface fix copyright date in headers
* add an interface for the timefactory classBernhard Posselt2014-12-201-1/+3
| | | | fix indention
* Olivier Paroz \OCP\AppFramework\Utility\IControllerMethodReflectorOlivier Paroz2014-12-141-1/+3
|
* make regex in controllermethodreflector.php compatible with PCRE 6.xPhilipp Knechtges2014-12-141-1/+1
| | | | | The syntax ?<...> seems to be only supported from PCRE 7.0 on. For backwards-compability ?P<...> is used.
* Fix Pimple unsetBernhard Posselt2014-11-111-1/+1
|
* Update Pimple to V3.0Thomas Müller2014-11-031-3/+6
|
* Use mixed as typeLukas Reschke2014-10-221-5/+8
| | | | Actually query() returns value of the type "mixed" (as is also stated in the interface) - this is purely there to make our IDEs and Scrutinizer happier.
* Minor fixesMorris Jobke2014-08-051-0/+1
| | | | | | * instanceof \OC\Files\View * fix misplaced paranthesis * remove misplaced character in comment
* Fixed array_combine for PHP 5.3Vincent Petry2014-06-111-2/+7
|
* make it possible to omit parameters and use the default parameters from the ↵Bernhard Posselt2014-05-131-2/+7
| | | | controller method
* Fix typoBernhard Posselt2014-05-111-1/+1
|
* default to null to not fail if type is not annotated via phpdocBernhard Posselt2014-05-111-3/+7
|
* adjust license headers to new mail addressBernhard Posselt2014-05-112-2/+2
|
* implement most of the basic stuff that was suggested in #8290Bernhard Posselt2014-05-111-5/+41
|
* add class Pimple to autloaderThomas Müller2014-04-281-3/+0
|
* be nice and use a relative import so people can use the class without firing ↵Bernhard Posselt2014-04-121-1/+1
| | | | up owncloud
* polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-061-1/+1
|
* don't specify path to 3rdparty directory when registering Pimple autoloaderAdam Williamson2014-01-011-1/+1
| | | | The core 3rdparty directory is in the include_path from lib/base.php anyway, so this is unnecessary, and causes problems for downstream distributors who unbundle Pimple.
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-303-0/+147
Conflicts: lib/private/vcategories.php