{"comment":{"url":"https://api.github.com/repos/polyfony-inc/polyfony/comments/27794471","html_url":"https://github.com/polyfony-inc/polyfony/commit/e45caf44fc24d09c7d3d3139b9f037300abe05cc#commitcomment-27794471","id":27794471,"user":{"login":"AnnoyingTechnology","id":5336824,"avatar_url":"https://avatars0.githubusercontent.com/u/5336824?v=4","gravatar_id":"","url":"https://api.github.com/users/AnnoyingTechnology","html_url":"https://github.com/AnnoyingTechnology","followers_url":"https://api.github.com/users/AnnoyingTechnology/followers","following_url":"https://api.github.com/users/AnnoyingTechnology/following{/other_user}","gists_url":"https://api.github.com/users/AnnoyingTechnology/gists{/gist_id}","starred_url":"https://api.github.com/users/AnnoyingTechnology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnnoyingTechnology/subscriptions","organizations_url":"https://api.github.com/users/AnnoyingTechnology/orgs","repos_url":"https://api.github.com/users/AnnoyingTechnology/repos","events_url":"https://api.github.com/users/AnnoyingTechnology/events{/privacy}","received_events_url":"https://api.github.com/users/AnnoyingTechnology/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"e45caf44fc24d09c7d3d3139b9f037300abe05cc","created_at":"2018-02-26T18:04:26Z","updated_at":"2018-02-26T18:04:26Z","author_association":"CONTRIBUTOR","body":"FYI @WarenN ( et @Jijac ) la nouvelle syntaxe (même si l'ancienne est toujours supportée, et pas encore deprecated) \r\n\r\n```php\r\n\r\npf\\Response\\HTML::set([\r\n\t'links'\t=>[\r\n\t\t'//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',\r\n\t\t'//use.fontawesome.com/releases/v5.0.6/css/all.css' => ['media'=>'screen'],\r\n\t\t'/SublimeFavicon.svg'=>['rel'=>'icon','type'=>'image/svg+xml','size'=>'any']\r\n\t],\r\n\t'scripts'\t=>[\r\n\t\t'//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js',\r\n\t\t'//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js'\r\n\t],\r\n\t'metas'\t=>[\r\n\t\t'title'\t\t=>'Bundles/Demo',\r\n\t\t'description'\t=>'Demo bundle with example of most features'\r\n\t]\r\n]);\r\n\r\n``` \r\n\r\nvs avant\r\n\r\n```php\r\n\r\n// set some common metas and assets\r\npf\\Response::set([\r\n\t'css'\t=>[\r\n\t\t'//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css',\r\n\t\t'//use.fontawesome.com/releases/v5.0.6/css/all.css'\r\n\t],\r\n\t'js'\t=>[\r\n\t\t'//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js',\r\n\t\t'//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js'\r\n\t],\r\n\t'metas'\t=>[\r\n\t\t'title'\t\t=>'Bundles/Demo',\r\n\t\t'description'\t=>'Demo bundle with example of most features'\r\n\t]\r\n]);\r\n\r\n```\r\n\r\nce sont les seules méthodes affectées. Tout ce qui est commun à toutes les réponses et ne concerne pas les pages HTML ne bouge pas (`Response::setStatus()` etc. )"}}
{"actor":{"display_login":"AnnoyingTechnology"}}