e set
* @return ListenerOptions
*/
public function setModuleMapCacheKey($moduleMapCacheKey)
{
$this->moduleMapCacheKey = $moduleMapCacheKey;
return $this;
}
/**
* Get the path to the module class map cache
*
* @return string
*/
public function getModuleMapCacheFile()
{
if ($this->getModuleMapCacheKey()) {
return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
}
return $this->getCacheDir() . '/module-classmap-cache.php';
}
/**
* Set whether to check dependencies during module loading or not
*
* @return bool
*/
public function getCheckDependencies()
{
return $this->checkDependencies;
}
/**
* Set whether to check dependencies during module loading or not
*
* @param bool $checkDependencies the value to be set
* @return ListenerOptions
*/
public function setCheckDependencies($checkDependencies)
{
$this->checkDependencies = (bool) $checkDependencies;
return $this;
}
/**
* Whether or not to use laminas-loader to autoload modules.
*
* @return bool
*/
public function useLaminasLoader()
{
return $this->useLaminasLoader;
}
/**
* Set a flag indicating if the module manager should use laminas-loader
*
* Setting this option to false will disable ModuleAutoloader, requiring
* other means of autoloading to be used (e.g., Composer).
*
* If disabled, the AutoloaderProvider feature will be disabled as well
*
* @param bool $flag
* @return ListenerOptions
*/
public function setUseLaminasLoader($flag)
{
$this->useLaminasLoader = (bool) $flag;
return $this;
}
/**
* Normalize a path for insertion in the stack
*
* @param string $path
* @return string
*/
public static function normalizePath($path)
{
$path = rtrim($path, '/');
$path = rtrim($path, '\\');
return $path;
}
/** @deprecated Use self::useLaminasLoader instead */
public function useZendLoader(): bool
{
return $this->useLaminasLoader(...func_get_args());
}
/** @deprecated Use self::setUseLaminasLoader instead */
public function setUseZendLoader(bool $flag): ListenerOptions
{
return $this->setUseLaminasLoader(...func_get_args());
}
}
e set
* @return ListenerOptions
*/
public function setModuleMapCacheKey($moduleMapCacheKey)
{
$this->moduleMapCacheKey = $moduleMapCacheKey;
return $this;
}
/**
* Get the path to the module class map cache
*
* @return string
*/
public function getModuleMapCacheFile()
{
if ($this->getModuleMapCacheKey()) {
return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';
}
return $this->getCacheDir() . '/module-classmap-cache.php';
}
/**
* Set whether to check dependencies during module loading or not
*
* @return bool
*/
public function getCheckDependencies()
{
return $this->checkDependencies;
}
/**
* Set whether to check dependencies during module loading or not
*
* @param bool $checkDependencies the value to be set
* @return ListenerOptions
*/
public function setCheckDependencies($checkDependencies)
{
$this->checkDependencies = (bool) $checkDependencies;
return $this;
}
/**
* Whether or not to use laminas-loader to autoload modules.
*
* @return bool
*/
public function useLaminasLoader()
{
return $this->useLaminasLoader;
}
/**
* Set a flag indicating if the module manager should use laminas-loader
*
* Setting this option to false will disable ModuleAutoloader, requiring
* other means of autoloading to be used (e.g., Composer).
*
* If disabled, the AutoloaderProvider feature will be disabled as well
*
* @param bool $flag
* @return ListenerOptions
*/
public function setUseLaminasLoader($flag)
{
$this->useLaminasLoader = (bool) $flag;
return $this;
}
/**
* Normalize a path for insertion in the stack
*
* @param string $path
* @return string
*/
public static function normalizePath($path)
{
$path = rtrim($path, '/');
$path = rtrim($path, '\\');
return $path;
}
/** @deprecated Use self::useLaminasLoader instead */
public function useZendLoader(): bool
{
return $this->useLaminasLoader(...func_get_args());
}
/** @deprecated Use self::setUseLaminasLoader instead */
public function setUseZendLoader(bool $flag): ListenerOptions
{
return $this->setUseLaminasLoader(...func_get_args());
}
}
Fatal error: Uncaught Error: Class "Laminas\ModuleManager\Listener\ListenerOptions" not found in /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ModuleManagerFactory.php:33
Stack trace:
#0 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(642): Laminas\Mvc\Service\ModuleManagerFactory->__invoke(Object(Laminas\ServiceManager\ServiceManager), 'ModuleManager', NULL)
#1 /home/metaseit/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(264): Laminas\ServiceManager\ServiceManager->doCreate('ModuleManager')
#2 /home/metaseit/vendor/laminas/laminas-mvc/src/Application.php(251): Laminas\ServiceManager\ServiceManager->get('ModuleManager')
#3 /home/metaseit/public_html/index.php(30): Laminas\Mvc\Application::init(Array)
#4 {main}
thrown in /home/metaseit/vendor/laminas/laminas-mvc/src/Service/ModuleManagerFactory.php on line 33