{"action":"opened","issue":{"url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/issues/113","labels_url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/issues/113/comments","events_url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/issues/113/events","html_url":"https://github.com/mblaschke/TYPO3-metaseo/issues/113","id":99033274,"number":113,"title":"[TASK] PSR-7 for Ajax requests/responses","user":{"login":"thomaszbz","id":11200727,"avatar_url":"https://avatars.githubusercontent.com/u/11200727?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaszbz","html_url":"https://github.com/thomaszbz","followers_url":"https://api.github.com/users/thomaszbz/followers","following_url":"https://api.github.com/users/thomaszbz/following{/other_user}","gists_url":"https://api.github.com/users/thomaszbz/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaszbz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaszbz/subscriptions","organizations_url":"https://api.github.com/users/thomaszbz/orgs","repos_url":"https://api.github.com/users/thomaszbz/repos","events_url":"https://api.github.com/users/thomaszbz/events{/privacy}","received_events_url":"https://api.github.com/users/thomaszbz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/labels/needs:%20refactoring%20concept","name":"needs: refactoring concept","color":"fef2c0"},{"url":"https://api.github.com/repos/mblaschke/TYPO3-metaseo/labels/refactoring","name":"refactoring","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-04T18:44:08Z","updated_at":"2015-08-04T18:44:08Z","closed_at":null,"body":"TYPO3 CMS claims to be PSR-7 compliant:\r\n\r\n\"TYPO3 7.4 is the first Open Source Content Management System which uses the newly introduced PSR-7 standard, which allows for a proper Request/Response logic known from other standalone PHP frameworks. All entry points have been unified to use a clean Application class, so that no PHP code is called in the global scope. The TYPO3 Backend now only uses typo3/index.php for calling anything (AJAX Requests, Backend Modules, etc) with a flexible Request Handling API.\"\r\n\r\nWe could see which components of TYPO3 CMS we could reuse. Plus, we might learn a lot about the new clean code of TYPO3 7.4.\r\n\r\nI already suggested to use of OOP for request and response objects in #92.\r\n\r\nHowever, we must check if all the new jazz introduced in TYPO3 7.4 still works with TYPO3 6.2. Basically this could mean that this refactoring step cannot be done until EOL of 6.2, at least not the way they did it in 7.4. As said, we need to investigate on that question.\r\n\r\nReferences:\r\nhttp://www.php-fig.org/psr/psr-7/\r\nhttp://typo3.org/news/article/announcing-typo3-74-nothing-is-impossible/"}}