Documentation

    Installation

    We recommend that you install this extension onto a staging or development copy of your Magento website first. You should also take a backup before starting the installation. Fontis community extensions are provided without any support or warranty so we cannot provide any help if anything goes wrong.

    The recommended way to install a Fontis extension is using Composer. If you don't already have Composer installed, you can install it using the instructions mentioned on the Composer documentation.

    Note that our extension packages cannot be installed with the Magento Connect Manager.

    Installing

    To add the extension to your website, run the following command from the Magento root (or wherever composer.json is located):

    composer require fontis/composer-autoloader

    Updating

    To update the extension to a newer version, just run the following command:

    composer update fontis/composer-autoloader

    Setting up

    Edit app/etc/local.xml and add the following XML. Modify the path to suit your installation, based on the location of your Composer vendor directory:

    <composer_autoloader>
        <path>{{basedir}}/vendor</path>
    </composer_autoloader>

    This should go inside <config><global> next to <install>, <crypt>, etc. The special values {{basedir}} and {{libdir}} will be replaced with the paths for the Magento base directory and the lib directory, respectively:

    <config>
       <global>
          ...
          <composer_autoloader>
              <path>{{basedir}}/vendor</path>
          </composer_autoloader>
          ...
       </global>
    </config>

    Before Magento will install your extension you need to clear some caches that Magento uses.

    1. Log in to the Magento admin panel.
    2. Go to System → Cache Management.
    3. Check the boxes next to Configuration cache type and click the Submit button.

    The appropriate caches should now be cleared. The extension is now installed and active.

    Configuration

    The only way to configure this extension is to change the path of the vendor directory. See Setting Up.

    Usage

    The extension makes all Composer autoloaded classes available across the entire Magento codebase. This extension does nothing on its own, but serves as a base for other extensions to use libraries managed by composer.