☁️ Nextcloud server, a safe home for all your data
Find a file
Bernhard Posselt 95239ad21e AppFramework StreamResponse
First stab at the StreamResponse, see #12988

The idea is to use an interface ICallbackResponse (I'm not 100% happy with the name yet, suggestions?) that allow the response to output things in its own way, for instance stream the file using readfile

Unittests are atm lacking, plan is to

check if a mock of ICallbackResponse will be used by calling its callback (also unhappy with this name) method
Usage is:

$response = new StreamResponse('path/to/file');

rename io to output, add additional methods and handle error and not modified cases when using StreamResponse

fix indention and uppercasing, also handle forbidden cases

fix indention

fix indention

no forbidden, figuring out if a file is really readable is too complicated to get to work across OSes and streams

remove useless import

remove useless import

fix intendation
2015-02-27 15:42:33 +01:00
.idea Add newline that was removed by 15be763d46 2014-12-10 09:38:32 +01:00
3rdparty@322e9ce44a update 3rdparty to current master 2015-02-26 15:11:03 +01:00
apps Merge pull request #14530 from owncloud/revert-14403 2015-02-27 00:39:29 -08:00
build php script which updates the license header in all php file in the repo 2015-02-22 20:36:36 +00:00
config use flock instead of just checking if there is a file to prevent deadlocks when the process crashed or the unlink wasnt done 2015-02-24 15:41:20 +01:00
core Merge pull request #14530 from owncloud/revert-14403 2015-02-27 00:39:29 -08:00
l10n Correctly create the expected key for plurals with quotes 2015-02-18 13:22:06 +01:00
lib AppFramework StreamResponse 2015-02-27 15:42:33 +01:00
ocs Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
settings Merge pull request #14530 from owncloud/revert-14403 2015-02-27 00:39:29 -08:00
tests AppFramework StreamResponse 2015-02-27 15:42:33 +01:00
themes Gitorious => Github 2012-08-26 02:39:42 +03:00
.bowerrc ability to add bower resources 2014-11-03 20:54:40 +01:00
.gitignore Better cleanup in autotest.sh 2015-01-28 15:06:18 +00:00
.gitmodules use https as submodule url 2014-03-21 19:38:22 +01:00
.htaccess Use "off" and "off" instead of true booleans 2015-02-23 09:40:15 +01:00
.jshintrc enable laxbreak option in jshintrc to comply with our coding guide lines 2014-11-04 12:51:54 +01:00
.mailmap Adding .mailmap - helps to add unified authors to the license header 2015-02-22 20:36:36 +00:00
.scrutinizer.yml bower jquery-ui - exported changes to a separate css file 2014-12-13 09:47:34 +01:00
.tag Add .tag file to make tar balls tracable 2014-06-14 17:40:32 +02:00
.user.ini Use "off" and "off" instead of true booleans 2015-02-23 09:40:15 +01:00
AUTHORS Add myself as author 2014-09-19 17:24:12 +02:00
autotest-external.sh Better cleanup in autotest.sh 2015-01-28 15:06:18 +00:00
autotest-hhvm.sh Better cleanup in autotest.sh 2015-01-28 15:06:18 +00:00
autotest-js.sh remove 'set -e' - causes issues during ci execution 2014-09-12 15:42:50 +02:00
autotest.cmd Restore the development config after running the tests 2014-12-02 12:41:33 +01:00
autotest.sh Better cleanup in autotest.sh 2015-01-28 15:06:18 +00:00
bower.json bump jquery.strengthify to 0.4.1 2015-01-06 13:48:58 +01:00
buildjsdocs.sh Added script to build the JS documentation 2014-10-31 13:27:36 +01:00
console.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
CONTRIBUTING.md add documentation issue trackers and use https everywhere 2015-02-18 19:13:49 +01:00
COPYING-AGPL Really add AGPL file 2011-02-09 15:12:09 +00:00
COPYING-README correct icon license, we use Elementary icons, not Silk anymore 2014-07-15 11:35:49 +02:00
cron.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
db_structure.xml set max argument length to 4000 2015-02-25 15:09:41 +01:00
index.html Try to prefer index.php over index.html in the same directory 2013-04-24 15:11:53 +02:00
index.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
indie.json add indie.json for Indie App Store listing 2014-06-29 22:03:24 +02:00
issue_template.md Merge pull request #10830 from Finkregh/patch-1 2015-02-24 12:13:55 +01:00
occ Use a more universal shebang 2014-11-19 17:34:03 +01:00
public.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
README.md version up 2015-01-11 16:17:57 +01:00
remote.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
robots.txt Add robot.txt 2013-01-28 16:39:53 -06:00
status.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
version.php Merge pull request #14530 from owncloud/revert-14403 2015-02-27 00:39:29 -08:00

ownCloud

ownCloud gives you freedom and control over your own data. A personal cloud which runs on your own server.

Build Status on Jenkins CI

Git master: Build Status

Quality:

  • Scrutinizer: Scrutinizer Quality Score
  • CodeClimate: Code Climate

Installation instructions

http://doc.owncloud.org/server/8.0/developer_manual/app/index.html

Contribution Guidelines

http://owncloud.org/contribute/

Get in touch

Important notice on translations

Please submit translations via Transifex: https://www.transifex.com/projects/p/owncloud/

Transifex

For more detailed information about translations: http://doc.owncloud.org/server/8.0/developer_manual/core/translation.html