protected function discoverRoutes()
	{
		if ($this->didDiscover)
		{
			return;
		}

		// We need this var in local scope
		// so route files can access it.
		$routes = $this;

		if ($this->moduleConfig->shouldDiscover('routes'))
		{
			$files = $this->fileLocator->search('Config/Routes.php');

			foreach ($files as $file)
			{
				// Don't include our main file again...
				if ($file === APPPATH . 'Config/Routes.php')
				{
					continue;
				}

				include $file;
			}
		}

		$this->didDiscover = true;
	}
protected function discoverRoutes()
	{
		if ($this->didDiscover)
		{
			return;
		}

		// We need this var in local scope
		// so route files can access it.
		$routes = $this;

		if ($this->moduleConfig->shouldDiscover('routes'))
		{
			$files = $this->fileLocator->search('Config/Routes.php');

			foreach ($files as $file)
			{
				// Don't include our main file again...
				if ($file === APPPATH . 'Config/Routes.php')
				{
					continue;
				}

				include $file;
			}
		}

		$this->didDiscover = true;
	}
protected function discoverRoutes ( ) { if ( $ this -> didDiscover ) { return ; } // We need this var in local scope // so route files can access it. $ routes = $ this ; if ( $ this -> moduleConfig -> shouldDiscover ( 'routes' ) ) { $ files = $ this -> fileLocator -> search ( 'Config/Routes.php' ) ; foreach ( $ files as $ file ) { // Don't include our main file again... if ( $ file === APPPATH . 'Config/Routes.php' ) { continue ; } include $ file ; } } $ this -> didDiscover = true ; }
Will attempt to discover any additional routes, either through
the local PSR4 namespaces, or through selected Composer packages.
Will attempt to discover any additional routes either through the local PSR4 namespaces or through selected Composer packages .