Commit Graph

1560 Commits

Author SHA1 Message Date
Benoît Burnichon
32204ebe7c Refactor PrinterController 2015-05-25 12:22:04 +02:00
Benoît Burnichon
3864a31cc8 Split Printer provider into controller/provider 2015-05-25 12:17:20 +02:00
Benoît Burnichon
82da488ba2 Refactor OrderController 2015-05-25 12:01:58 +02:00
Benoît Burnichon
94133aabe4 Create UserQueryAware trait. 2015-05-25 10:49:05 +02:00
Benoît Burnichon
4603159bb2 Split Order Provider into Controller/Provider 2015-05-25 09:08:18 +02:00
Benoît Burnichon
d77b55388d Add extended behavior to listRecord
PHRAS-537
2015-05-22 16:18:14 +02:00
Benoît Burnichon
a9c79973a9 Returns a Not Found exception when providing invalid/expired/before JWT token 2015-05-22 11:06:45 +02:00
Benoît Burnichon
fac4f4b6a5 Handle invalid JWT. download belongs to query, not request. 2015-05-21 16:45:13 +02:00
Benoît Burnichon
1dc0ff9123 JWT uses an ArrayAccess but expects a string, not a Secret model. 2015-05-21 14:33:11 +02:00
Benoît Burnichon
fb5ca52306 Add Permalink 2015-05-21 12:26:28 +02:00
Benoît Burnichon
205dc746f4 Remove 400 status code on globals submission
PHRAS-535
2015-05-20 16:20:38 +02:00
Benoît Burnichon
c2ff3b6575 Add Secrets to ApplicationBox. 2015-05-19 18:26:57 +02:00
Benoît Burnichon
b1b70520bd Refactor MoveCollectionController 2015-05-15 02:05:05 +02:00
Benoît Burnichon
178247b99e Split MoveCollection controller 2015-05-15 02:05:05 +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
382459d3f4 Refactor using FilesystemAware 2015-05-14 23:44:05 +02:00
Benoît Burnichon
469e2d0583 Add DataboxLoggerAware where needed 2015-05-14 23:43:00 +02:00
Benoît Burnichon
0dfe090ac0 Split Lazaret Controller into 2 classes 2015-05-14 22:05:25 +02:00
Benoît Burnichon
8e4a5994a9 Refactor LanguageController 2015-05-14 21:44:25 +02:00
Benoît Burnichon
ee50322010 Refactor FeedController 2015-05-14 21:06:40 +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
3b1d5aff10 Merge remote-tracking branch 'origin/feature/controller-as-service' 2015-05-13 10:19:38 +02:00
Benoît Burnichon
956b6e401c Fixup ApiTests about Content-Type
# Conflicts:
#	lib/Alchemy/Phrasea/Controller/Prod/BridgeController.php
2015-05-13 09:49:33 +02:00
Jean-Yves Gaulier
e713cbcc80 - fix : title is writen in the (first) field declared "thumbtitle"
- add (wip, do not use) : metadatas can be set for the new story(ies), by field name of metadata_struct_id, see sample:

{
	"stories": [
		{
  			"title": "Story 1",
  			"description": "A story from Phraseanet",
	    	"collection_id": 494,
            "metadatas": {
            	"Ville": "Paris",
                "Pays": "France",
                "7": "Dupond",
                "MotsCles": [
                	"soleil",
                    "pluie"
                ]
            },
			"story_records": [
				{
					"title": "record 1 in story 1",
					"databox_id": 3,
					"record_id": 209
				},
				{
					"title": "record 2 in story 1",
					"databox_id": 3,
					"record_id": 210
				}
			]
	  	},
		{
  			"title": "Story 2",
  			"description": "Another story from Phraseanet",
	    	"collection_id": 495
  		}
	]
}
2015-05-12 21:29:52 +02:00
Benoît Burnichon
4eabe26e58 Use NotifierAware in some controllers 2015-05-12 19:17:10 +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
634f5366ae use DispatcherAware wherever possible 2015-05-12 17:15:11 +02:00
Benoît Burnichon
019bf563f8 Split Export Controller, introduce DispatcherAware trait 2015-05-12 17:11:47 +02:00
Benoît Burnichon
414111f7f2 Refactor EditController 2015-05-12 10:40:31 +02:00
Benoît Burnichon
fc03fa80be Split EditController into Provider and Controller 2015-05-11 20:22:41 +02:00
Benoît Burnichon
704679eda6 Refactor DownloadController 2015-05-11 18:56:17 +02:00
Benoît Burnichon
5e8f5035c6 Refactor DoDownloadController 2015-05-11 18:45:12 +02:00
Benoît Burnichon
77031ee719 Move DoDownload actions in its own class. 2015-05-11 18:33:09 +02:00
Benoît Burnichon
72fdfa7141 Fixup ApiTests about Content-Type 2015-05-11 18:11:51 +02:00
Benoît Burnichon
4d4f631672 Change Application to use BridgeController.
Remove reference to app.
2015-05-11 13:26:56 +02:00
Benoît Burnichon
99264e258e Refactor BridgeController 2015-05-11 13:03:12 +02:00
Benoît Burnichon
c954544cec Change BridgeController 2015-05-11 12:37:09 +02:00
Benoît Burnichon
9950711ce8 Basket controller cleanup 2015-05-11 12:37:09 +02:00
Benoît Burnichon
137942a6d1 Move methods from Basket Provider to BasketController. 2015-05-11 12:37:09 +02:00
Benoît Burnichon
8c037232d5 Merge pull request #1374 from jygaulier/API_STORY
report des routes api/story de 3.8
2015-05-11 12:18:45 +02:00
Benoît Burnichon
a024ea8b90 Merge pull request #1375 from jygaulier/SUBSTITUTE_SUBDEF
report api substitute / nosubdef
2015-05-11 12:13:42 +02:00
Jean-Yves Gaulier
ae24e5332a -fix 2015-05-11 11:41:43 +02:00
Jean-Yves Gaulier
02a06c6515 #time 2h
- fix api subdef substitute
- fix api addrecord/nosubdef
2015-05-07 19:32:15 +02:00
Jean-Yves Gaulier
68a27c173f fix 2015-05-07 17:53:04 +02:00
Benoît Burnichon
80bb56b875 Merge pull request #1373 from bburnichon/feature/phras-519-revocable-permalinks
PHRAS-519 avoid public feeds not to check permalink status (is_enabled status field)
2015-05-07 17:35:06 +02:00
Jean-Yves Gaulier
3305329501 report des routes api/story de 3.8
#time 1.5d
2015-05-07 16:53:53 +02:00