{"id":3883,"date":"2022-05-19T11:20:21","date_gmt":"2022-05-19T11:20:21","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"modified":"2026-04-28T14:07:09","modified_gmt":"2026-04-28T14:07:09","slug":"proc-potrebujeme-polyfill-symfony-a-proc-bychom-nemeli","status":"publish","type":"post","link":"https:\/\/thecodest.co\/cs\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","title":{"rendered":"Pro\u010d pot\u0159ebujeme Symfony Polyfill (... a pro\u010d bychom nem\u011bli)"},"content":{"rendered":"<p>Ve v\u011bt\u0161in\u011b modern\u00edch <strong><a href=\"https:\/\/thecodest.co\/cs\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a> projekty<\/strong>, v\u0161imnete si siln\u00e9 z\u00e1vislosti na p\u0159\u00edkazu <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> knihovna. V tomto \u010dl\u00e1nku si vysv\u011btl\u00edme nejen to, jak funguje a jak souvis\u00ed s <strong>Projekty Symfony<\/strong>, ale tak\u00e9 se budeme hloub\u011bji zab\u00fdvat my\u0161lenkou probl\u00e9mu, kter\u00fd se sna\u017e\u00ed \u0159e\u0161it.<\/p>\n<h2>Trocha historie<\/h2>\n<p><strong>PHP<\/strong> byl dlouho ve \u0161patn\u00e9m stavu. Bylo to v roce 2005, kdy Andrej Zmievski zah\u00e1jil <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/why-do-projects-fail\/\">projekt<\/a> p\u0159in\u00e9st nativn\u00ed podporu Unicode pro <strong>PHP<\/strong> kv\u016fli sm\u00ed\u0161en\u00fdm recenz\u00edm a mnoha obav\u00e1m, \u017ee <strong>PHP<\/strong> se ub\u00edr\u00e1 \u0161patn\u00fdm sm\u011brem. V\u00fdvoj <strong>PHP<\/strong> 6.x byl spu\u0161t\u011bn. Nikdy v\u0161ak nebyl dokon\u010den - a to je p\u0159\u00edb\u011bh na jindy. O deset let pozd\u011bji, n\u011bkdy mezi lety 2014 a 2015, za\u010dali Dmitrij Stogov, Xinchen Hui a Nikita Popov s projektem <code>phpng<\/code> - projekt, kter\u00fd optimalizoval a refaktorizoval intern\u00ed Zend Engine pou\u017e\u00edvan\u00fd syst\u00e9mem <strong>PHP<\/strong>.<\/p>\n<h4>&gt;_ <em>Zrodil se model PHP 7<\/em><\/h4>\n<p>A za posledn\u00ed roky, <strong>PHP<\/strong> roste rychleji ne\u017e kdykoli p\u0159edt\u00edm a v sou\u010dasn\u00e9 dob\u011b je ve stabiln\u00ed verzi 8.1.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/162561908-025b0d15-1b7a-4592-8f81-05c7b29bc3c9.png\" alt=\"obr\u00e1zek\" \/><\/p>\n<p>Vzhledem k rychl\u00e9mu v\u00fdvoji nov\u00fdch funkc\u00ed jazyka se t\u011bmto zm\u011bn\u00e1m museli p\u0159izp\u016fsobit nejen v\u00fdvoj\u00e1\u0159i, ale tak\u00e9 poskytovatel\u00e9 infrastruktury a hostingov\u00fdch slu\u017eeb.<\/p>\n<p>Abychom my, v\u00fdvoj\u00e1\u0159i, mohli pou\u017e\u00edvat nejnov\u011bj\u0161\u00ed a nejlep\u0161\u00ed funkce na\u0161eho milovan\u00e9ho programovac\u00edho jazyka. <strong>Symfony Polyfill<\/strong> vznikl projekt.<\/p>\n<h2>Symfony Polyfill a jeho funkce<\/h2>\n<blockquote>\n<p>Tento projekt backportuje funkce nalezen\u00e9 v nejnov\u011bj\u0161\u00edm <strong>Verze PHP<\/strong> a poskytuje vrstvy kompatibility pro n\u011bkter\u00e1 roz\u0161\u00ed\u0159en\u00ed a funkce. Je ur\u010den k pou\u017eit\u00ed v p\u0159\u00edpad\u011b p\u0159enositelnosti nap\u0159\u00ed\u010d zem\u011bmi. <strong>Verze PHP<\/strong> a roz\u0161\u00ed\u0159en\u00ed je \u017e\u00e1douc\u00ed.<\/p>\n<\/blockquote>\n<p>Jedn\u00e1 se o \u010dist\u00fd popis <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> ale co to znamen\u00e1? <\/p>\n<p>Vzhledem k rychle se vyv\u00edjej\u00edc\u00edmu <strong>Jazyk PHP<\/strong> a nestandardn\u00ed p\u0159izp\u016fsoben\u00ed softwaru poskytovatel\u016f internetov\u00fdch slu\u017eeb, v\u011bt\u0161ina v\u00fdvoj\u00e1\u0159\u016f byla postavena p\u0159ed jednoduchou volbu:<\/p>\n<ul>\n<li>Jako <a href=\"https:\/\/thecodest.co\/cs\/blog\/hire-vue-js-developers\/\">v\u00fdvoj\u00e1\u0159<\/a>, vytv\u00e1\u0159\u00edm aplikace ve star\u0161\u00ed verzi <strong>PHP<\/strong> a nemohou pou\u017e\u00edvat nejnov\u011bj\u0161\u00ed funkce jazyka, nebo<\/li>\n<li>Jako v\u00fdvoj\u00e1\u0159 vytv\u00e1\u0159\u00edm modern\u00ed aplikaci pomoc\u00ed nejnov\u011bj\u0161\u00ed verze syst\u00e9mu <strong>PHP<\/strong>.<\/li>\n<\/ul>\n<p>Museli v\u0161ak zachovat kompatibilitu s ostatn\u00edmi n\u00e1stroji a slu\u017ebami, kter\u00e9 se ji\u017e pou\u017e\u00edvaj\u00ed jak na <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/what-is-code-refactoring\/\">k\u00f3d<\/a> a na stran\u011b infrastruktury - t\u00e9m\u011b\u0159 v\u017edy s pou\u017eit\u00edm star\u0161\u00edch verz\u00ed <strong>PHP<\/strong>.Mus\u00edm se, mil\u00fd \u010dten\u00e1\u0159i, zmi\u0148ovat o takzvan\u00e9m \"faktoru z\u00e1bavy\" t\u011bchto dvou \u0159e\u0161en\u00ed?<\/p>\n<p>Aby v\u00fdvoj\u00e1\u0159\u016fm usnadnila cestu, vytvo\u0159ila komunita open source v roce 2015 <a href=\"https:\/\/github.com\/symfony\/polyfill\/tree\/v1.0.0\" rel=\"nofollow\">prvn\u00ed stabiln\u00ed verze Polyfill s \u010d\u00edslem 1.0<\/a>. \u017divot v\u00fdvoj\u00e1\u0159\u016f se stal jednodu\u0161\u0161\u00edm a d\u00e1 se \u0159\u00edci, \u017ee Symfony Polyfill vy\u0159e\u0161il \u0159adu probl\u00e9m\u016f, jako je nap\u0159\u00edklad p\u0159enositelnost k\u00f3du mezi r\u016fzn\u00fdmi platformami, <strong>Verze PHP<\/strong> rozd\u00edly a usnadnilo refaktorizaci aplikac\u00ed a sn\u00ed\u017een\u00ed technologick\u00e9ho dluhu.<\/p>\n<p>Bohu\u017eel ne v\u0161echny probl\u00e9my lze vy\u0159e\u0161it jedn\u00edm n\u00e1strojem.<\/p>\n<h2>Probl\u00e9my spojen\u00e9 s udr\u017eov\u00e1n\u00edm v\u00edce verz\u00ed prost\u0159ed\u00ed<\/h2>\n<p>Pro komplexn\u00ed <strong>IT projekty<\/strong>, udr\u017eov\u00e1n\u00ed r\u016fzn\u00fdch verz\u00ed prost\u0159ed\u00ed pro r\u016fzn\u00e9 z\u00e1kazn\u00edky\/odd\u011blen\u00ed\/odbory je b\u011b\u017en\u00fd postup. To vede k nutnosti vyv\u00edjet sou\u010dasn\u011b mnoho r\u016fzn\u00fdch v\u011btv\u00ed aplikac\u00ed, \u010dasto s r\u016fzn\u00fdmi funk\u010dn\u00edmi po\u017eadavky a s vlastn\u00ed trakc\u00ed. Mnohokr\u00e1t jsem se setkal s probl\u00e9mem udr\u017eov\u00e1n\u00ed stejn\u00e9 aplikace pro r\u016fzn\u00e9 z\u00e1kazn\u00edky na r\u016fzn\u00fdch prost\u0159ed\u00edch PHP5 \/ PHP7 a mno\u017estv\u00ed probl\u00e9m\u016f souvisej\u00edc\u00edch s nekompatibilitou knihoven nebo jejich z\u00e1vislost\u00ed pro r\u016fzn\u00e9 verze je prost\u011b ne\u0159e\u0161iteln\u00e9 pouze pomoc\u00ed <strong>Symfony Polyfill<\/strong>.<\/p>\n<h2>Rozd\u00edl v dovednostech \u010dlen\u016f v\u00fdvojov\u00e9ho t\u00fdmu<\/h2>\n<p>Vzhledem k rychl\u00e9mu n\u00e1r\u016fstu funkc\u00ed zabudovan\u00fdch do <strong>PHP<\/strong>, mnoho v\u00fdvoj\u00e1\u0159\u016f neudr\u017eelo krok s tempem zm\u011bn. Mnoho funkc\u00ed nab\u00edzen\u00fdch ve vy\u0161\u0161\u00edch verz\u00edch <strong>PHP<\/strong> lze snadno dos\u00e1hnout pomoc\u00ed extern\u00edch knihoven, nebo v\u00fdvoj\u00e1\u0159i jednodu\u0161e nepot\u0159ebovali nov\u00e9 funkce, jako nap\u0159. <a href=\"https:\/\/www.php.net\/manual\/en\/language.fibers.php\" rel=\"nofollow\">PHP Vl\u00e1kna<\/a>. P\u0159i v\u00fdb\u011bru <a href=\"https:\/\/thecodest.co\/cs\/blog\/how-to-hire-the-best-outsourced-development-team-for-a-scaleup\/\">t\u00fdm<\/a> \u010dlen\u016f, je dobr\u00e9 zajistit, aby byly dovednosti slad\u011bny nebo aby byl proces dod\u00e1v\u00e1n\u00ed k\u00f3du konzistentn\u011bj\u0161\u00ed d\u00edky n\u00e1stroj\u016fm statick\u00e9 anal\u00fdzy a v\u010dasn\u00e9 detekci chyb p\u0159i regresi verz\u00ed.<\/p>\n<h2>Neochota ke zm\u011bn\u011b<\/h2>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/168078028-edd8afe9-04aa-4250-983b-7bdf115bc459.png\" alt=\"obr\u00e1zek\" \/><\/p>\n<p>P\u0159ijet\u00ed nov\u00fdch jazykov\u00fdch funkc\u00ed je st\u00e1le pom\u011brn\u011b n\u00edzk\u00e9 a <strong>PHP<\/strong> 5 je v\u00edce ne\u017e 24% pod\u00edl jasn\u011b ukazuje, \u017ee <strong><em>\u010dtvrtina projekt\u016f PHP pou\u017e\u00edv\u00e1 verze ni\u017e\u0161\u00ed ne\u017e 7.x.<\/em><\/strong>, jej\u00ed\u017e bezpe\u010dnostn\u00ed podpora bude ukon\u010dena 6. prosince 2022. To znamen\u00e1, \u017ee v dob\u011b psan\u00ed tohoto p\u0159\u00edsp\u011bvku je v\u00edce ne\u017e 25% na b\u00e1zi PHP. <a href=\"https:\/\/thecodest.co\/cs\/blog\/find-your-ideal-stack-for-web-development\/\">Web<\/a> projekty budou do konce roku potenci\u00e1ln\u011b zraniteln\u00e9 v\u016f\u010di v\u0161em nov\u00fdm bezpe\u010dnostn\u00edm zranitelnostem. \"Pokud to funguje, pro\u010d bychom se m\u011bli obt\u011b\u017eovat\"?<\/p>\n<h2>Z\u00e1v\u011br<\/h2>\n<p>M\u011bli bychom se co nejrychleji p\u0159izp\u016fsobit jazykov\u00fdm zm\u011bn\u00e1m a co nejd\u0159\u00edve pou\u017e\u00edvat nejnov\u011bj\u0161\u00ed \u0159e\u0161en\u00ed. P\u0159i p\u0159\u00edpadn\u00e9 migraci projektu Legacy je vhodn\u00e9 zahrnout i <strong>Symfony Polyfill<\/strong> jako pomocn\u00edka a s vyu\u017eit\u00edm technik, jako je Strangler Pattern a v sou\u010dasnosti m\u00f3dn\u00ed metodika BDD, kter\u00e1 se b\u00e1je\u010dn\u011b snadno aplikuje na <strong>R\u00e1mec Symfony<\/strong>. Jsme tedy opravdu nuceni pou\u017e\u00edvat <strong>Symfony Polyfill<\/strong>?<\/p>\n<p><a href=\"https:\/\/calendly.com\/the-codest-php\/thecodest-php-tech-consultation\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/php_development.png\" alt=\"PHP v\u00fdvoj bezplatn\u00e9 poradenstv\u00ed\" \/><\/a><\/p>\n<p><strong>P\u0159e\u010dt\u011bte si v\u00edce:<\/strong><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-5-things-you-ought-to-know\">PHP V\u00fdvoj: 5 v\u011bc\u00ed, kter\u00e9 byste m\u011bli v\u011bd\u011bt<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/7-startups-that-will-shake-the-marketplace-scene-in-2022\/\">7 startup\u016f a scaleup\u016f, kter\u00e9 v roce 2022 ot\u0159esou tr\u017en\u00ed sc\u00e9nou<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-symfony-console-component-tips-tricks\">PHP V\u00fdvoj. Komponenta Symfony Console - Tipy a triky<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>V n\u00e1sleduj\u00edc\u00edm \u010dl\u00e1nku vysv\u011btl\u00edme, jak Symfony Polyfill funguje a jak souvis\u00ed s projekty Symfony. Tak\u00e9 se hloub\u011bji pono\u0159\u00edme do my\u0161lenky, kterou se tato knihovna sna\u017e\u00ed \u0159e\u0161it.<\/p>","protected":false},"author":2,"featured_media":3884,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Why do we need Symfony Polyfill (... and why we shouldn&#039;t) - The Codest<\/title>\n<meta name=\"description\" content=\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/cs\/blog\/proc-potrebujeme-polyfill-symfony-a-proc-bychom-nemeli\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Why do we need Symfony Polyfill (... and why we shouldn&#039;t)\" \/>\n<meta property=\"og:description\" content=\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/cs\/blog\/proc-potrebujeme-polyfill-symfony-a-proc-bychom-nemeli\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-19T11:20:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-28T14:07:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"thecodest\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thecodest\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)\",\"datePublished\":\"2022-05-19T11:20:21+00:00\",\"dateModified\":\"2026-04-28T14:07:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"},\"wordCount\":805,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\",\"name\":\"Why do we need Symfony Polyfill (... and why we shouldn't) - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"datePublished\":\"2022-05-19T11:20:21+00:00\",\"dateModified\":\"2026-04-28T14:07:09+00:00\",\"description\":\"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"cs\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\",\"name\":\"thecodest\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"caption\":\"thecodest\"},\"url\":\"https:\\\/\\\/thecodest.co\\\/cs\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Pro\u010d pot\u0159ebujeme Symfony Polyfill (... a pro\u010d bychom nem\u011bli) - The Codest","description":"V n\u00e1sleduj\u00edc\u00edm \u010dl\u00e1nku vysv\u011btl\u00edme, jak Symfony Polyfill funguje a jak souvis\u00ed s projekty Symfony. Tak\u00e9 se hloub\u011bji pono\u0159\u00edme do my\u0161lenky, kterou se tato knihovna sna\u017e\u00ed \u0159e\u0161it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/cs\/blog\/proc-potrebujeme-polyfill-symfony-a-proc-bychom-nemeli\/","og_locale":"cs_CZ","og_type":"article","og_title":"Why do we need Symfony Polyfill (... and why we shouldn't)","og_description":"In the following article, we explain how Symfony Polyfill works and how it relates to Symfony projects. We will also dive deeper into the idea that this library tries to solve.","og_url":"https:\/\/thecodest.co\/cs\/blog\/proc-potrebujeme-polyfill-symfony-a-proc-bychom-nemeli\/","og_site_name":"The Codest","article_published_time":"2022-05-19T11:20:21+00:00","article_modified_time":"2026-04-28T14:07:09+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","type":"image\/png"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"5 minut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)","datePublished":"2022-05-19T11:20:21+00:00","dateModified":"2026-04-28T14:07:09+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"},"wordCount":805,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","articleSection":["Software Development"],"inLanguage":"cs","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","url":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","name":"Pro\u010d pot\u0159ebujeme Symfony Polyfill (... a pro\u010d bychom nem\u011bli) - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","datePublished":"2022-05-19T11:20:21+00:00","dateModified":"2026-04-28T14:07:09+00:00","description":"V n\u00e1sleduj\u00edc\u00edm \u010dl\u00e1nku vysv\u011btl\u00edme, jak Symfony Polyfill funguje a jak souvis\u00ed s projekty Symfony. Tak\u00e9 se hloub\u011bji pono\u0159\u00edme do my\u0161lenky, kterou se tato knihovna sna\u017e\u00ed \u0159e\u0161it.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why_do_we_need_symfony_polyfill_-._and_why_we_shouldn_t-.png","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Why do we need Symfony Polyfill (&#8230; and why we shouldn&#8217;t)"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"cs"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]},{"@type":"Person","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76","name":"thecodest","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","caption":"thecodest"},"url":"https:\/\/thecodest.co\/cs\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/comments?post=3883"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3883\/revisions"}],"predecessor-version":[{"id":8142,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3883\/revisions\/8142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/media\/3884"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/media?parent=3883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/categories?post=3883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/tags?post=3883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}