{"id":302,"date":"2018-07-03T17:55:20","date_gmt":"2018-07-03T17:55:20","guid":{"rendered":"http:\/\/www.evermoretechnologies.com\/blog\/?p=302"},"modified":"2018-07-03T17:55:20","modified_gmt":"2018-07-03T17:55:20","slug":"zendcodeexceptionruntimeexception-no-tokens-were-provided-setupdicompile","status":"publish","type":"post","link":"https:\/\/www.evermoretechnologies.com\/blog\/2018\/07\/zendcodeexceptionruntimeexception-no-tokens-were-provided-setupdicompile\/","title":{"rendered":"[Zend\\Code\\Exception\\RuntimeException]  No tokens were provided &#8211; setup:di:compile"},"content":{"rendered":"<p>I have run into this error while running a setup:di:compile in Magento 2.<\/p>\n<p>The error was caused by empty php files in my extension.\u00a0 I created a bunch of files to get the structure in place, but hadn&#8217;t filled out all of the files yet.<\/p>\n<p>Adding even an opening php tag and nothing else allowed the setup:di:compile to complete.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have run into this error while running a setup:di:compile in Magento 2. The error was caused by empty php files in my extension.\u00a0 I created a bunch of files&#8230; <a href=\"https:\/\/www.evermoretechnologies.com\/blog\/2018\/07\/zendcodeexceptionruntimeexception-no-tokens-were-provided-setupdicompile\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[34],"tags":[],"_links":{"self":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/302"}],"collection":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=302"}],"version-history":[{"count":1,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/302\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.evermoretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}