protected function _readMessageTemplate($path) {
		$base = new RecursiveDirectoryIterator($path);
		$iterator = new RecursiveIteratorIterator($base);
		$data = [];

		foreach ($iterator as $item) {
			$file = $item->getPathname();

			switch (pathinfo($file, PATHINFO_EXTENSION)) {
				case 'php':
					$data += $this->_parsePhp($file);
				break;
			}
		}
		return $data;
	}
protected function _readMessageTemplate($path) {
		$base = new RecursiveDirectoryIterator($path);
		$iterator = new RecursiveIteratorIterator($base);
		$data = [];

		foreach ($iterator as $item) {
			$file = $item->getPathname();

			switch (pathinfo($file, PATHINFO_EXTENSION)) {
				case 'php':
					$data += $this->_parsePhp($file);
				break;
			}
		}
		return $data;
	}
protected function _readMessageTemplate ( $ path ) { $ base = new RecursiveDirectoryIterator ( $ path ) ; $ iterator = new RecursiveIteratorIterator ( $ base ) ; $ data = [ ] ; foreach ( $ iterator as $ item ) { $ file = $ item -> getPathname ( ) ; switch ( pathinfo ( $ file , PATHINFO_EXTENSION ) ) { case 'php' : $ data += $ this -> _parsePhp ( $ file ) ; break ; } } return $ data ; }
Extracts data from files within configured path recursively.

@param string $path Base path to start extracting from.
@return array
Extracts data from files within configured path recursively .