bin/AOM.php
public static function getAutoloader()
    {
        $autoLoaderFile = self::getAppPath() . '/vendor/autoload.php';

        if (!file_exists($autoLoaderFile)) {
            throw new \RuntimeException("Can't find autoloader.");
        }

        /** @var \Composer\Autoload\ClassLoader $loader */
        $loader = include $autoLoaderFile;

        return $loader;
    }
public static function getAutoloader()
    {
        $autoLoaderFile = self::getAppPath() . '/vendor/autoload.php';

        if (!file_exists($autoLoaderFile)) {
            throw new \RuntimeException("Can't find autoloader.");
        }

        /** @var \Composer\Autoload\ClassLoader $loader */
        $loader = include $autoLoaderFile;

        return $loader;
    }
@throws \RuntimeException

@return \Composer\Autoload\ClassLoader