Commit Graph

370 Commits

Author SHA1 Message Date
Benoît Burnichon
ded66ac8d1 Fix badly named class 2016-04-13 12:00:51 +02:00
Benoît Burnichon
dc2dee30af Rename methods and fix Closure call issue 2016-04-13 12:00:51 +02:00
Benoît Burnichon
d2a5ca05bf Make Api routes uses same flow as web 2016-04-13 12:00:51 +02:00
Benoît Burnichon
034f56964c Slight refactor of AclAware trait 2016-03-15 12:21:00 +01:00
Scrutinizer Auto-Fixer
d8d4d79309 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-03-11 16:13:39 +00:00
Benoît Burnichon
58b80bf08a Group Filesystem related service providers 2016-02-05 15:36:19 +01:00
Benoît Burnichon
ced5094355 Remove DeliverDataInterface::deliverData as never used 2016-01-29 17:43:41 +01:00
Benoît Burnichon
21779c85e3 Fixup wrongly passed definition i/o providerKey 2016-01-28 11:35:22 +01:00
Benoît Burnichon
8b2ac43ec6 Merge pull request #1639 from bburnichon/improvement/slight-refactoring
slight refactoring
2016-01-22 21:08:08 +01:00
Thibaud Fabre
450adb0847 Application bootstrap refactor
- Extract environment properties in Environment class
- Replaces initialisation closure by ApplicationLoader class
- Removes undesirable error handling/PHP settings modifications
2016-01-22 17:12:21 +01:00
Benoît Burnichon
6fb295b6b9 PHPCS 2016-01-22 12:23:18 +01:00
Thibaud Fabre
35d6301122 Fix profiler service init for ajax profiling 2016-01-20 08:00:16 +01:00
Thibaud Fabre
17e4750b59 Add WebProfilerServiceProvider to inject Ajax profiler
- Silex provider implements feature, but only in Silex 2.0 compatible branch
2016-01-20 08:00:02 +01:00
Benoît Burnichon
edefb161be Lower priority of extended formats in API
PHRAS-900
2016-01-11 10:23:51 +01:00
Thibaud Fabre
c92d5da9fe Merge branch 'clean-boxes' into merge-clean-boxes 2016-01-06 19:53:43 +01:00
Benoît Burnichon
51023c5533 bump copyright year 2016-01-05 13:38:14 +01:00
Benoît Burnichon
985ec4a491 Extract JsonBodyHelper and use it 2015-12-22 14:24:32 +01:00
Benoît Burnichon
b2ee2668a1 Change to be able to return called API version 2015-12-22 14:19:34 +01:00
Benoît Burnichon
6847737742 Use alchemy/symfony-cors instead of ApiCorsSubscriber 2015-11-20 19:13:18 +01:00
Benoît Burnichon
533c792a7f Properly handle negotiation of custom formats. 2015-11-13 11:37:11 +01:00
Benoît Burnichon
afd3fc56f7 Change in ContentNegotiationSubscriber 2015-10-29 18:06:33 +01:00
Benoît Burnichon
0db32e35b8 Change to comply negotiation:^2.0.0 2015-10-28 11:56:59 +01:00
Benoît Burnichon
b335620306 Add plugin capability to add routes. 2015-10-28 10:59:20 +01:00
Thibaud Fabre
6882424a01 Add registration related webhooks 2015-10-20 17:45:16 +02:00
Thibaud Fabre
5bf08210aa Enable application logging from API calls 2015-09-29 18:16:12 +02:00
Thibaud Fabre
da9ec3908c Fix typos and use method to fetch appbox 2015-09-25 18:06:32 +02:00
Thibaud Fabre
569c2ff6d8 Implement save collection VO 2015-07-10 17:32:09 +02:00
Thibaud Fabre
1bcefda9a1 Add API get collection route
Conflicts:
	lib/Alchemy/Phrasea/Controller/Api/V1.php
	lib/classes/API/V1/adapter.php

Conflicts:
	lib/classes/appbox.php
2015-07-07 19:28:50 +02:00
Benoît Burnichon
78187f7103 PHPCS fixup 2015-07-02 12:33:19 +02:00
Benoît Burnichon
d645b92afa Add AclAware Trait 2015-07-02 12:33:18 +02:00
Benoît Burnichon
4880f2bf5a Add getAuthenticator usage
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser()
replace twig app['authentication'].getUser() with corresponding method
2015-07-02 12:33:18 +02:00
Benoît Burnichon
3804eb5408 Add AuthenticatorAware trait to Application 2015-07-02 12:27:26 +02:00
Benoît Burnichon
6e651f3b07 Replace app['phraseanet.appbox']->get_databox using trait 2015-07-02 12:27:26 +02:00
Benoît Burnichon
8d47fb4848 Add ApplicationBoxAware trait 2015-07-02 12:27:25 +02:00
Benoît Burnichon
4eea27d9be Refactor UploadController 2015-06-02 13:59:16 +02:00
Benoît Burnichon
7581aada18 Merge pull request #1384 from bburnichon/feature/controller-as-service
controller as service
2015-05-27 18:30:40 +02:00
Benoît Burnichon
c083cd5d53 Allow API to be used with WebProfiler 2015-05-26 18:35:57 +02:00
Benoît Burnichon
2523320850 Refactor RecordController. Adding SearchEngineTrait 2015-05-25 17:38:09 +02:00
Benoît Burnichon
94133aabe4 Create UserQueryAware trait. 2015-05-25 10:49:05 +02:00
Benoît Burnichon
fb5ca52306 Add Permalink 2015-05-21 12:26:28 +02:00
Benoît Burnichon
ad766a3eaf Refactor LazaretController 2015-05-15 02:05:05 +02:00
Benoît Burnichon
b19083096b Add DelivererAware trait 2015-05-15 02:05:05 +02:00
Benoît Burnichon
469e2d0583 Add DataboxLoggerAware where needed 2015-05-14 23:43:00 +02:00
Benoît Burnichon
e25cd4097c Change DispatcherAware to accept concrete instances
Dispatcher is already instanciated when invoking controller. So useless to lazy load it.
2015-05-14 21:06:39 +02:00
Benoît Burnichon
55190dffd0 Move methods from Feed ControllerProvider to Controller 2015-05-14 18:34:12 +02:00
Benoît Burnichon
549c63d083 PHRAS-530
FileSystemAware was renamed FilesystemAware (lowercase S) but change was not reflected on real git filesystem.
2015-05-13 15:53:12 +02:00
Benoît Burnichon
88cb63b3ed Refactor ExportController 2015-05-12 19:09:08 +02:00
Benoît Burnichon
61206fd517 Replace calls to mediavorus to getMediaFromUri 2015-05-12 18:12:02 +02:00
Benoît Burnichon
81e8fcb606 Fixup CS and missing $this->app 2015-05-12 17:15:38 +02:00
Benoît Burnichon
019bf563f8 Split Export Controller, introduce DispatcherAware trait 2015-05-12 17:11:47 +02:00