Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
...
* test case added to avoid adding them later
11 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
11 years ago
Bernhard Posselt
a152e320f6
make it possible to omit parameters and use the default parameters from the controller method
11 years ago
Bernhard Posselt
63f2f16b85
use new controllermethodreflector for corsmiddleware
11 years ago
Bernhard Posselt
474b8f071d
Fix typo
11 years ago
Bernhard Posselt
3e58a767ad
Fix method signature
11 years ago
Bernhard Posselt
fcb1aa36f0
default to null to not fail if type is not annotated via phpdoc
11 years ago
Bernhard Posselt
1d45239c65
adjust license headers to new mail address
11 years ago
Bernhard Posselt
cb666c18d6
rename formatter to responder, formatResponse to buildResponse
11 years ago
Bernhard Posselt
c590244fa1
add private property for reflector in security middleware
11 years ago
Bernhard Posselt
ede7325772
fix broken if
11 years ago
Bernhard Posselt
d8da79cab0
add test for not failing when adding more comments after type parameters, do not limit x-www-form-urlencoded to POST
11 years ago
Bernhard Posselt
4dca2038bf
add request to dispatcher class
11 years ago
Bernhard Posselt
80648da431
implement most of the basic stuff that was suggested in #8290
11 years ago
Lukas Reschke
cd3ed01483
Fix Typo
...
I guess that should be `default` and not `defautl`, wondering how this ever worked.
11 years ago
Bernhard Posselt
e05192a23d
Fix method signature
11 years ago
Bernhard Posselt
9a4d204b55
add cors middleware
...
remove methodannotationreader namespace
fix namespace for server container
fix tests
fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request
remove uneeded local in cors middleware registratio
dont uppercase cors to easily use it from routes
fix indention
comment fixes
explicitely set allow credentials header to false
dont depend on better controllers PR, fix that stuff later
split cors methods to be in a seperate controller for exposing apis
remove protected definitions from apicontroller since controller has it
11 years ago
Thomas Müller
6935364b33
add class Pimple to autloader
11 years ago
Bernhard Posselt
7e447f4f42
make download and redirectresponse public
11 years ago
Bernhard Posselt
0c736feaba
remove useless import
11 years ago
Bernhard Posselt
4a7e0561ca
move db into iservercontainer
11 years ago
Bernhard Posselt
95a83233a9
fix doc strings for db facade
11 years ago
Bernhard Posselt
f260951825
port database layer from appframework to core
11 years ago
Bernhard Posselt
62cce982bb
default to GET request when no method is set to fix unittests, also set parsed json parameters on the post attribute
11 years ago
Bernhard Posselt
e7fa2790f3
Correctly process request parameters other than GET or POST, dont use globals in the class but inject it
11 years ago
Bernhard Posselt
526100dc90
be nice and use a relative import so people can use the class without firing up owncloud
11 years ago
Bernhard Posselt
4af72a076d
use references for middleware to fix problems on 5.3
11 years ago
Bernhard Posselt
763da4258e
fix the middleware registration process in the container
11 years ago
Bernhard Posselt
f06ef8aa4b
register middleware as string to not force request to be instantiated too early and thus not having url parameters
11 years ago
Bernhard Posselt
70c88027db
add requirements to routing
11 years ago
Robin Appelman
8ab7d18a6a
Move the router classes to a namespace and expose it with a public interface
11 years ago
Morris Jobke
b76a3993d4
fix master - #7274 brokes it
11 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
...
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
11 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
11 years ago
Adam Williamson
9b4a827e0b
don't specify path to 3rdparty directory when registering Pimple autoloader
...
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.
11 years ago
Morris Jobke
7755e69af0
add PHPDoc for urlParams
11 years ago
Thomas Müller
993fea2f05
fix appframework routing
11 years ago
Thomas Tanghus
ad017285e1
Fix namespace for OCP\Appframework\Http
...
To avoid having to use OCP\Appframework\Http\Http in the public - and stable
- API OCP\Appframework\Http is now both a class and a namespace.
12 years ago
Thomas Müller
7f1432600c
fixing php 5.3.3 error:
...
Undefined variable: this
lib/private/appframework/dependencyinjection/dicontainer.php:92
12 years ago
Thomas Tanghus
d75d80ba13
OCP\AppFramework\Controller\Controller => OCP\AppFramework\Controller
12 years ago
Thomas Müller
7bd5352509
php 5.3 compatibility for \OC\AppFramework\DependencyInjection\DIContainer
12 years ago
Thomas Müller
c3286402a8
removing log(), getTemplate(), getLocalFilePath(), getUrlContent(), getFileInfo()
12 years ago
Thomas Müller
39be4dca67
removing all link/url related calls from API class
12 years ago
Thomas Müller
3ea2dfa5f9
remove getTrans() from API class
12 years ago
Thomas Müller
54e77e0e66
fixing typo
12 years ago
Thomas Müller
f3c6546d5b
remove obsolete passesCSRFCheck()
12 years ago
Thomas Müller
e071bfc144
fixing SecurityMiddleware to use OC6 API
12 years ago
Thomas Müller
1f14ba6aed
move controller to OCP
12 years ago
Thomas Tanghus
47b2007228
Remove misleading IMiddleware interface
12 years ago
Thomas Tanghus
c85621a897
Make abstract Middleware class public
...
It doesn't make sense for subclasses to have to implement
all methods.
12 years ago