* WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ use ZenMagick\Base\Runtime; /** * Cleaned up version of the Zen Cart auto loader * * @author Johnny Robeson */ ksort($autoLoadConfig); $session = Runtime::getcontainer()->get('session'); foreach ($autoLoadConfig as $actionPoint => $row) { foreach ($row as $entry) { if (isset($entry['loaderPrefix']) && $entry['loaderPrefix'] != $loaderPrefix) { continue; } $files = array(); $require = false; switch ($entry['autoType']) { case 'classInstantiate': if (!isset($entry['checkInstantiated'])) { $entry['checkInstantiated'] = false; } if (!isset($entry['classSession'])) { $entry['classSession'] = false; }