Commit Graph

362 Commits

Author SHA1 Message Date
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
Benoît Burnichon
c90a60b0f6 Missing OAuth Service Provider 2015-04-28 10:40:54 +02:00
Benoît Burnichon
62b8e5a6e4 Refactoring of API V1 Controller 2015-04-27 20:35:36 +02:00
Benoît Burnichon
3f4e767557 Refactor Api OAuth2 Controller 2015-04-21 19:40:22 +02:00
Benoît Burnichon
ad51a350b7 Change content type negotiation in API.
Fix typo in negotiator word.
2015-03-27 13:46:54 +01:00
Benoît Burnichon
1342756b84 Rename Controller to ControllerProvider 2015-03-27 12:55:43 +01:00
Benoît Burnichon
c72e31163b Merge remote-tracking branch 'upstream/3.8' 2015-03-13 18:50:49 +01:00
Nicolas Le Goff
5b3e699599 Merge remote-tracking branch 'upstream/3.8'
Conflicts:
	bower.json
	composer.lock
	lib/Alchemy/Phrasea/Application/Api.php
	lib/Alchemy/Phrasea/Controller/Prod/Lazaret.php
	lib/Alchemy/Phrasea/SearchEngine/Phrasea/PhraseaEngineQueryParser.php
	lib/classes/API/V1/adapter.php
	lib/classes/Feed/Adapter.php
	lib/classes/User/Query.php
	lib/classes/patch/320alpha4b.php
	templates/web/admin/statusbit.html.twig
	templates/web/prod/actions/Tools/index.html.twig
	templates/web/prod/index.html.twig
	templates/web/prod/upload/lazaret.html.twig
	templates/web/prod/upload/upload-flash.html.twig
	www/scripts/apps/login/home/config.js
	www/skins/prod/000000/prodcolor.css
	www/skins/prod/959595/prodcolor.css
2015-02-23 19:16:56 +01:00
Nicolas Le Goff
938a83b967 PHRAS-29 #fix Add creation story in API 2015-02-23 14:44:16 +01:00