protected function writeManagersTemplates()
	{
		foreach ($this->managersData as $managerName => $managerData) {
			$data = [
				'className' => $managerName . 'Manager',
				'classPhpDocTitle' => $managerName . ' manager class',
				'namespace' => $this->namespace . '\Managers',
				'routes' => $managerData['routes'],
			];

			if (isset($managerData['uses'])) {
				$data['uses'] = $managerData['uses'];
			}

			$filePath = $this->outputPath . DIRECTORY_SEPARATOR . 'Managers' . DIRECTORY_SEPARATOR . $managerName . 'Manager.php';

			if (!is_null($this->outputInterface)) {
				$this->outputInterface->writeln('<info>Writing ' . $filePath . '</info>');
			}

			file_put_contents($filePath, $this->managerTemplate->render($data));
		}
	}
protected function writeManagersTemplates()
	{
		foreach ($this->managersData as $managerName => $managerData) {
			$data = [
				'className' => $managerName . 'Manager',
				'classPhpDocTitle' => $managerName . ' manager class',
				'namespace' => $this->namespace . '\Managers',
				'routes' => $managerData['routes'],
			];

			if (isset($managerData['uses'])) {
				$data['uses'] = $managerData['uses'];
			}

			$filePath = $this->outputPath . DIRECTORY_SEPARATOR . 'Managers' . DIRECTORY_SEPARATOR . $managerName . 'Manager.php';

			if (!is_null($this->outputInterface)) {
				$this->outputInterface->writeln('<info>Writing ' . $filePath . '</info>');
			}

			file_put_contents($filePath, $this->managerTemplate->render($data));
		}
	}
protected function writeManagersTemplates ( ) { foreach ( $ this -> managersData as $ managerName => $ managerData ) { $ data = [ 'className' => $ managerName . 'Manager' , 'classPhpDocTitle' => $ managerName . ' manager class' , 'namespace' => $ this -> namespace . '\Managers' , 'routes' => $ managerData [ 'routes' ] , ] ; if ( isset ( $ managerData [ 'uses' ] ) ) { $ data [ 'uses' ] = $ managerData [ 'uses' ] ; } $ filePath = $ this -> outputPath . DIRECTORY_SEPARATOR . 'Managers' . DIRECTORY_SEPARATOR . $ managerName . 'Manager.php' ; if ( ! is_null ( $ this -> outputInterface ) ) { $ this -> outputInterface -> writeln ( '<info>Writing ' . $ filePath . '</info>' ) ; } file_put_contents ( $ filePath , $ this -> managerTemplate -> render ( $ data ) ) ; } }
Write managers templates files
Write managers templates files