get('config')['timezone']); ini_set('memory_limit', '256M'); umask(0002); $cacheDir = __DIR__ . '/tmp/cache'; if (!file_exists($cacheDir)) { if (false === mkdir($cacheDir, 0777, true)) { die('Cannot create directory: ' . $cacheDir); } } $cache = Zend_Cache::factory( 'Core', 'File', ['automatic_serialization' => true], [ 'cache_dir' => $cacheDir, 'cache_file_perm' => 0664, ] ); Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); $app = new Application('Import console application'); $commands = $container->get('config')['console']['commands']; foreach ($commands as $command) { $app->add($container->get($command)); } $app->run();