{"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":"af-hverju-thurfum-vid-symfony-polyfill-og-af-hverju-aettum-vid-ekki-ad-nota-thad","status":"publish","type":"post","link":"https:\/\/thecodest.co\/is\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/","title":{"rendered":"Af hverju \u00feurfum vi\u00f0 Symfony Polyfill (\u2026 og af hverju \u00e6ttum vi\u00f0 ekki a\u00f0 nota \u00fea\u00f0)"},"content":{"rendered":"<p>\u00cd flestum n\u00fat\u00edma <strong><a href=\"https:\/\/thecodest.co\/is\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a> verkefni<\/strong>, munt \u00fe\u00fa taka eftir mikilli h\u00e1\u00f0 \u00e1 <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> b\u00f3kasafn. \u00cd \u00feessari grein munum vi\u00f0 \u00fatsk\u00fdra ekki a\u00f0eins hvernig \u00fea\u00f0 virkar og hvernig \u00fea\u00f0 tengist <strong>Symfony-verkefni<\/strong>, en vi\u00f0 munum einnig kafa d\u00fdpra \u00ed hugmyndina um vandam\u00e1li\u00f0 sem \u00fea\u00f0 reynir a\u00f0 leysa.<\/p>\n<h2>Sm\u00e1 saga<\/h2>\n<p><strong>PHP<\/strong> var \u00ed sl\u00e6mu \u00e1standi \u00ed nokkurn t\u00edma. \u00dea\u00f0 var \u00e1ri\u00f0 2005 \u00feegar Andrei Zmievski h\u00f3f a <a href=\"https:\/\/thecodest.co\/is\/dictionary\/why-do-projects-fail\/\">verkefni<\/a> a\u00f0 koma me\u00f0 innf\u00e6dda Unicode-stu\u00f0ning fyrir <strong>PHP<\/strong> vegna misjafna umsagna og margra \u00e1hyggja um a\u00f0 <strong>PHP<\/strong> er a\u00f0 fara \u00ed ranga \u00e1tt. \u00der\u00f3un <strong>PHP<\/strong> 6.x h\u00f3fst. En \u00fea\u00f0 var aldrei kl\u00e1ra\u00f0 \u2013 og \u00fea\u00f0 er saga fyrir annan dag. T\u00edu \u00e1rum s\u00ed\u00f0ar, einhvers sta\u00f0ar \u00e1 \u00e1runum 2014 og 2015, h\u00f3fu Dmitry Stogov, Xinchen Hui og Nikita Popov <code>phpng<\/code> \u2013 verkefni sem hagr\u00e6ddi og endurskipulag\u00f0i innri Zend-v\u00e9lina sem notu\u00f0 var af <strong>PHP<\/strong>.<\/p>\n<h4>&gt;_ <em>PHP 7 f\u00e6ddist<\/em><\/h4>\n<p>Og \u00e1 undanf\u00f6rnum \u00e1rum, <strong>PHP<\/strong> Er a\u00f0 vaxa hra\u00f0ar en nokkru sinni fyrr, n\u00fa \u00ed st\u00f6\u00f0ugri \u00fatg\u00e1fu 8.1.<\/p>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/162561908-025b0d15-1b7a-4592-8f81-05c7b29bc3c9.png\" alt=\"mynd\" \/><\/p>\n<p>Vegna hra\u00f0rar \u00fer\u00f3unar n\u00fdrra eiginleika \u00ed forritunarm\u00e1li \u00feurftu ekki a\u00f0eins forritarar a\u00f0 a\u00f0lagast \u00feessum breytingum, heldur einnig innvi\u00f0a- og h\u00fdsingar\u00fej\u00f3nustuveitendur.<\/p>\n<p>Til a\u00f0 tryggja a\u00f0 vi\u00f0, forritararnir, getum nota\u00f0 n\u00fdjustu og bestu eiginleika \u00e1sts\u00e6ls forritunarm\u00e1ls okkar <strong>Symfony Polyfill<\/strong> Verkefni\u00f0 var f\u00e6tt.<\/p>\n<h2>Symfony Polyfill og virkni \u00feess<\/h2>\n<blockquote>\n<p>\u00deetta verkefni flytur inn eiginleika sem finnast \u00ed n\u00fdjustu \u00fatg\u00e1funni. <strong>PHP-\u00fatg\u00e1fur<\/strong> og veitir samh\u00e6fisl\u00f6g fyrir nokkrar vi\u00f0b\u00e6tur og fall. \u00dea\u00f0 er \u00e6tla\u00f0 a\u00f0 nota \u00feegar flytjanleiki yfir <strong>PHP-\u00fatg\u00e1fur<\/strong> og framlenging er \u00e6skileg.<\/p>\n<\/blockquote>\n<p>\u00deetta er hreinn l\u00fdsing \u00e1 <a href=\"https:\/\/github.com\/symfony\/polyfill\" rel=\"nofollow\">Symfony Polyfill<\/a> En hva\u00f0 \u00fe\u00fd\u00f0ir \u00fea\u00f0? <\/p>\n<p>Vegna \u00feess a\u00f0 \u00fea\u00f0 \u00fer\u00f3ast hratt <strong>PHP tungum\u00e1l<\/strong> og vegna \u00f3skipulag\u00f0rar hugb\u00fana\u00f0arh\u00f6nnunar net\u00fej\u00f3nustuveitenda, hafa flestir forritarar sta\u00f0i\u00f0 frammi fyrir einf\u00f6ldu vali:<\/p>\n<ul>\n<li>Sem <a href=\"https:\/\/thecodest.co\/is\/blog\/hire-vue-js-developers\/\">\u00fer\u00f3unara\u00f0ili<\/a>, \u00e9g b\u00fd til forrit \u00ed eldri \u00fatg\u00e1fu af <strong>PHP<\/strong> og getur ekki nota\u00f0 n\u00fdjustu eiginleika tungum\u00e1lsins, e\u00f0a<\/li>\n<li>Sem forritari b\u00fd \u00e9g til n\u00fat\u00edmalegt forrit me\u00f0 n\u00fdjustu \u00fatg\u00e1fu af <strong>PHP<\/strong>.<\/li>\n<\/ul>\n<p>En \u00feeir \u00feurftu a\u00f0 vi\u00f0halda samr\u00fdmanleika vi\u00f0 \u00f6nnur verkf\u00e6ri og \u00fej\u00f3nustur sem \u00feegar voru notu\u00f0 b\u00e6\u00f0i \u00e1 <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-code-refactoring\/\">k\u00f3\u00f0i<\/a> og innvi\u00f0a hli\u00f0 \u2013 n\u00e1nast alltaf me\u00f0 eldri \u00fatg\u00e1fur af <strong>PHP<\/strong>.\u00dearf \u00e9g a\u00f0 nefna, k\u00e6ri lesandi, hinn svokalla\u00f0a \u2018skemmtifaktor\u2019 \u00feessara tveggja lausna?<\/p>\n<p>Til a\u00f0 au\u00f0velda lei\u00f0 forritara m\u00f3ta\u00f0i opinn hugb\u00fana\u00f0arsamf\u00e9lagi\u00f0 \u00e1ri\u00f0 2015 <a href=\"https:\/\/github.com\/symfony\/polyfill\/tree\/v1.0.0\" rel=\"nofollow\">Fyrsta st\u00f6\u00f0uga \u00fatg\u00e1fan af Polyfill, n\u00fameru\u00f0 1.0<\/a>. L\u00edf forritara var\u00f0 au\u00f0veldara og m\u00e1 segja a\u00f0 Symfony Polyfill hafi leyst fj\u00f6lm\u00f6rg vandam\u00e1l, svo sem flytjanleika k\u00f3\u00f0a \u00e1 milli mismunandi vettvanga, <strong>PHP-\u00fatg\u00e1fa<\/strong> munur og ger\u00f0i endurskipulagningu forrita og minnkun t\u00e6knilegs skuldar mun au\u00f0veldari.<\/p>\n<p>\u00dev\u00ed mi\u00f0ur er ekki h\u00e6gt a\u00f0 leysa \u00f6ll vandam\u00e1l me\u00f0 einu t\u00e6ki.<\/p>\n<h2>Vandam\u00e1l sem tengjast vi\u00f0haldi margra \u00fatg\u00e1fa af umhverfinu<\/h2>\n<p>Fyrir fl\u00f3ki\u00f0 <strong>Uppl\u00fdsingat\u00e6kniverkefni<\/strong>, a\u00f0 vi\u00f0halda mismunandi \u00fatg\u00e1fum af umhverfum fyrir mismunandi vi\u00f0skiptavini\/deildir\/deildarsvi\u00f0 er algeng a\u00f0fer\u00f0. \u00deetta lei\u00f0ir til \u00feess a\u00f0 \u00feurfa a\u00f0 \u00fer\u00f3a margar mismunandi \u00fatg\u00e1fur af forritum samt\u00edmis, oft me\u00f0 mismunandi virkni- og frammist\u00f6\u00f0ukr\u00f6fur. \u00c9g hef margoft lent \u00ed vandam\u00e1lum vi\u00f0 a\u00f0 vi\u00f0halda sama forriti fyrir mismunandi vi\u00f0skiptavini \u00e1 \u00f3l\u00edkum PHP5 \/ PHP7 umhverfum, og fj\u00f6ldi vandam\u00e1la sem tengjast \u00f3samr\u00fdmanleika b\u00f3kasafna e\u00f0a h\u00e1\u00f0ra \u00feeirra \u00ed mismunandi \u00fatg\u00e1fum er einfaldlega \u00f3leysanlegur me\u00f0 \u00fev\u00ed a\u00f0 nota eing\u00f6ngu <strong>Symfony Polyfill<\/strong>.<\/p>\n<h2>F\u00e6rnihl\u00ed\u00f0urinn milli me\u00f0lima \u00fer\u00f3unarinnar team<\/h2>\n<p>Vegna hra\u00f0rar aukningar \u00e1 eiginleikum sem innbygg\u00f0ir eru \u00ed <strong>PHP<\/strong>, margir forritarar hafa ekki fylgt breytingahra\u00f0anum. Margar af \u00feeim eiginleikum sem bj\u00f3\u00f0ast \u00ed h\u00e6rri \u00fatg\u00e1fum af <strong>PHP<\/strong> eru au\u00f0veldlega framkv\u00e6manleg me\u00f0 utana\u00f0komandi b\u00f3kas\u00f6fnum, e\u00f0a forritarar einfaldlega \u00feurftu ekki n\u00fdju eiginleikana, svo sem <a href=\"https:\/\/www.php.net\/manual\/en\/language.fibers.php\" rel=\"nofollow\">PHP trefjar<\/a>. Vi\u00f0 val \u00e1 <a href=\"https:\/\/thecodest.co\/is\/blog\/how-to-hire-the-best-outsourced-development-team-for-a-scaleup\/\">li\u00f0<\/a> Me\u00f0limir, \u00fea\u00f0 er g\u00f3\u00f0 hugmynd a\u00f0 tryggja a\u00f0 h\u00e6fni s\u00e9 \u00ed samr\u00e6mi e\u00f0a a\u00f0 k\u00f3\u00f0aflutningsferli\u00f0 ver\u00f0i samr\u00e6mdir me\u00f0 verkf\u00e6rum til stat\u00edskrar greiningar og snemmb\u00fainni greiningu \u00e1 villum \u00ed \u00fatg\u00e1fufalli.<\/p>\n<h2>\u00d3vilja til breytinga<\/h2>\n<p><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/168078028-edd8afe9-04aa-4250-983b-7bdf115bc459.png\" alt=\"mynd\" \/><\/p>\n<p>Vi\u00f0taka n\u00fdrra tungum\u00e1lseiginleika er enn frekar l\u00edtil og <strong>PHP<\/strong> 5\u2019s yfir 24% hlutdeild s\u00fdnir sk\u00fdrt a\u00f0 <strong><em>Fj\u00f3r\u00f0ungur af PHP-verkefnum eru me\u00f0 \u00fatg\u00e1fur sem eru l\u00e6gri en 7.x.<\/em><\/strong>, sem mun missa \u00f6ryggisstu\u00f0ning sinn 6. desember 2022. \u00deetta \u00fe\u00fd\u00f0ir a\u00f0 \u00feegar \u00feetta er skrifa\u00f0 eru yfir 25% af PHP-bundnum <a href=\"https:\/\/thecodest.co\/is\/blog\/find-your-ideal-stack-for-web-development\/\">Vefur<\/a> Verkefni ver\u00f0a hugsanlega vi\u00f0kv\u00e6m fyrir \u00f6llum n\u00fdjum \u00f6ryggisg\u00f6llum fyrir lok \u00e1rsins. \u201cEf \u00feetta virkar, af hverju \u00e6ttum vi\u00f0 \u00fe\u00e1 a\u00f0 hafa \u00e1hyggjur?\u201d<\/p>\n<h2>\u00c1lyktun<\/h2>\n<p>Vi\u00f0 \u00e6ttum a\u00f0 a\u00f0lagast tungum\u00e1labreytingum eins flj\u00f3tt og au\u00f0i\u00f0 er og nota n\u00fdjustu lausnir sem fyrst. Vi\u00f0 hugsanlega flutning \u00e1 Legacy-verkefni er \u00feess vir\u00f0i a\u00f0 innifela <strong>Symfony Polyfill<\/strong> sem hj\u00e1lpart\u00e6ki og me\u00f0 \u00fev\u00ed a\u00f0 nota a\u00f0fer\u00f0ir eins og Strangler-mynstur og hina n\u00faverandi t\u00edskulegu BDD-a\u00f0fer\u00f0afr\u00e6\u00f0i sem er \u00f3tr\u00falega au\u00f0velt a\u00f0 beita \u00e1 <strong>Symfony-ramminn<\/strong>. Svo erum vi\u00f0 virkilega neydd til a\u00f0 nota <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 \u00fer\u00f3un \u00f3keypis r\u00e1\u00f0gj\u00f6f\" \/><\/a><\/p>\n<p><strong>Lesa meira:<\/strong><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-5-things-you-ought-to-know\">PHP \u00fer\u00f3un: 5 hlutir sem \u00fe\u00fa \u00e6ttir a\u00f0 vita<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/7-startups-that-will-shake-the-marketplace-scene-in-2022\/\">7 sprotafyrirt\u00e6ki og vaxtarfyrirt\u00e6ki sem munu hrista marka\u00f0ssenuna \u00e1ri\u00f0 2022<\/a><\/p>\n<p><a href=\"https:\/\/thecodest.co\/blog\/php-development-symfony-console-component-tips-tricks\">PHP \u00fer\u00f3un. Symfony Console-\u00edhlutur \u2013 r\u00e1\u00f0 og brellur<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u00cd eftirfarandi grein \u00fatsk\u00fdrum vi\u00f0 hvernig Symfony Polyfill virkar og hvernig \u00fea\u00f0 tengist Symfony-verkefnum. Vi\u00f0 munum einnig kafa d\u00fdpra \u00ed \u00fe\u00e1 hugmynd sem \u00feetta b\u00f3kasafn reynir a\u00f0 leysa.<\/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\/is\/blogg\/af-hverju-thurfum-vid-symfony-polyfill-og-af-hverju-aettum-vid-ekki-ad-nota-thad\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\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\/is\/blogg\/af-hverju-thurfum-vid-symfony-polyfill-og-af-hverju-aettum-vid-ekki-ad-nota-thad\/\" \/>\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 minutes\" \/>\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\":\"is\",\"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\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@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\":\"is\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@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\":\"is\",\"@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\\\/is\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Af hverju \u00feurfum vi\u00f0 Symfony Polyfill (... og af hverju \u00e6ttum vi\u00f0 ekki a\u00f0) - The Codest","description":"\u00cd eftirfarandi grein \u00fatsk\u00fdrum vi\u00f0 hvernig Symfony Polyfill virkar og hvernig \u00fea\u00f0 tengist Symfony-verkefnum. Vi\u00f0 munum einnig kafa d\u00fdpra \u00ed \u00fe\u00e1 hugmynd sem \u00feetta b\u00f3kasafn reynir a\u00f0 leysa.","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\/is\/blogg\/af-hverju-thurfum-vid-symfony-polyfill-og-af-hverju-aettum-vid-ekki-ad-nota-thad\/","og_locale":"is_IS","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\/is\/blogg\/af-hverju-thurfum-vid-symfony-polyfill-og-af-hverju-aettum-vid-ekki-ad-nota-thad\/","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 minutes"},"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":"is","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":"Af hverju \u00feurfum vi\u00f0 Symfony Polyfill (... og af hverju \u00e6ttum vi\u00f0 ekki a\u00f0) - 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":"\u00cd eftirfarandi grein \u00fatsk\u00fdrum vi\u00f0 hvernig Symfony Polyfill virkar og hvernig \u00fea\u00f0 tengist Symfony-verkefnum. Vi\u00f0 munum einnig kafa d\u00fdpra \u00ed \u00fe\u00e1 hugmynd sem \u00feetta b\u00f3kasafn reynir a\u00f0 leysa.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/why-do-we-need-symfony-polyfill-and-why-we-shouldnt\/"]}]},{"@type":"ImageObject","inLanguage":"is","@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":"is"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"is","@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":"is","@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\/is\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/comments?post=3883"}],"version-history":[{"count":5,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3883\/revisions"}],"predecessor-version":[{"id":8142,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3883\/revisions\/8142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media\/3884"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media?parent=3883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/categories?post=3883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/tags?post=3883"}],"curies":[{"name":"vp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}