3 Pillars of DI by Anton Kril
3 Pillars of DI by Anton Kril Some high level overview notes on Magento 2’s dependency injection system, via simonsprankel.
astormBelow you'll find all the Uncategorized articles on the site, followed by a chronological listing of the same. You may also browse the 8 series directly via the following links. Miscellaneous Magento Articles, SugarCRM for PHP MVC Developers, Magento 2: Advanced Javascript, Magento 2 UI Components, Accelerated Mobile Pages, Pestle, Sylius for Magento and PHP Developers, and, Containers, Containers, Containers.
3 Pillars of DI by Anton Kril Some high level overview notes on Magento 2’s dependency injection system, via simonsprankel.
astormmagento2 – Magento 1 Class Rewrite in Magento 2 with Dependency Injection System – Magento Stack Exchange I didn’t realize this until today, but Magento 2 has completely ripped out the class rewrite system, and replaced it with a new dependency injection system. You can still rewrite a class, but instead of setting up a [...]
astormNo Frills Command Line Magento A quick note to Magento Quickies readers (in case you missed it elsewhere). I’ve published the n98-magerun series as a Leanpub book titled “No Frills Command Line Magento”. Future chapters are in the works, so get your copy today.
astormMagento Community 1.8 Update :: Meanbee Magento eCommerce An interesting, if odd, call from eBay to a few companies and individuals about the future of Community Edition.
astormAdvanced Magento Logging Came across this hackathon project via this Stack Exchange question. I haven’t used the linked logger, but back when I worked for a living emailing exceptions to a central list was a key development best practice. (And ignoring those exceptions was a key development anti-pattern that drove me into my own [...]
astormVarien_Object’s _underscoreCache Mainly posted because it amuses me to think of the fit an underscore js aware developer will have once they realize PrototypeJS is an unavoidable Magento reality.
astormPopulating Test Products Pure SQL solution for quickly populating Magento’s with test data. Standard warnings about using SQL and the possibility of invalid data relationships being created apply, but interesting none the less.
astormWhile you still call Mage::dispatchEvent to dispatch an event, Magento 2 has moved responsibility for event dispatch out of the Mage_Core_Mode_App class and into a stand alone Mage_Core_Model_Event_Manager class. If you’re debugging events the final dispatch method you’re interested in is #File: [...]
astormThat last post made me realize I hadn’t mentioned one of the biggest changes to Magento 2: No more class aliases. Magento still has factory methods for instantiating objects, but instead of the shorter, more elegant, and confusing class aliases Mage::getModel('catalog/product'); You use a full PHP class name [...]
astormOver Magento 2’s long gestation period, there’s been a lot of back and forth on its backwards compatibility. At this point, there would need to be a major engineering effort for out of the box API compatibility with Magento 1. Extension developers will need to resign themselves to some refactoring to get their extensions [...]
astormThe current Magento 2 source code has a number of different .htaccess files ./.htaccess ./app/.htaccess ./dev/.htaccess ./downloader/.htaccess ./downloader/template/.htaccess ./lib/.htaccess ./pub/.htaccess ./pub/errors/.htaccess ./pub/lib/.htaccess ./pub/media/.htaccess ./pub/media/customer/.htaccess ./pub/media/downloadable/.htaccess [...]
astormMagento 2 seems to be moving in a more Symfony/Zend 2/modern direction by splitting out the source folder (app) from the publicly browsable folder (pub). This is good, but the default distribution has a little weirdness — there’s two index.php files. There’s the one you’d expect in pub pub/index.php and then [...]
astormFor reasons that are way too complicated to get into on Magento Quickies, while Magento 2 still has the concept of a developer mode, there’s no longer a Mage::setIsDeveloperMode method. If you’d been lazily (like me. cough) editing index.php to switch your site into developer mode, that won’t work anymore. Your only [...]
astormThe first significant change in Magento 2? No more local, community, or even core code pools. Modules live in the top of app/code, and your modules live in their name-spaced folders. If you have any hard coded code pool paths, now’s the time to remove them.
astormMagento 2 Code Drop The Magento core team dropped about 4 months worth of changes to Magento 2 near the end of last week. Whatever you want to say about the core team, it can’t be that they’re sitting idle. There’s significant changes to things under the hood. Magento 2 is still a long ways off, but it’d be smart [...]
astormIntroducting the new n98-magerun module system
astormHigh Level Overview of Magento’s Internationalization (Translation) Feature http://magento.stackexchange.com/questions/6722/how-to-implement-translations-in-design-template-package-csvs-how-does-echo-t/6725#6725
astormMagento Rewrite Central The most important place to check when debugging a Magento rewrite that isn’t working.
astormDebugging a Magento Exception There’s nothing that remarkable about this answer — other than it pains me we’re training a generation of “blue collar” programmers who don’t know how to debug this sort of thing themselves, or even ask a cogent question about it. When I’m having a bad day I wonder if [...]
astorm