| @@ 134-144 (lines=11) @@ | ||
| 131 | $codePath = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode; |
|
| 132 | ||
| 133 | $dirList = array('Entity', 'Repository', 'Resource', 'Resource/doctrine', 'Resource/doctrine/migration'); |
|
| 134 | foreach ($dirList as $dirName) { |
|
| 135 | $dirPath = $codePath.'/'.$dirName; |
|
| 136 | if (!is_dir($dirPath)) { |
|
| 137 | mkdir($dirPath); |
|
| 138 | } |
|
| 139 | if (is_dir($dirPath)) { |
|
| 140 | $fsList['dir'][$dirPath] = true; |
|
| 141 | } else { |
|
| 142 | $fsList['dir'][$dirPath] = false; |
|
| 143 | } |
|
| 144 | } |
|
| 145 | ||
| 146 | $doctrinePath = $codePath.'/Resource/doctrine'; |
|
| 147 | ||
| @@ 136-146 (lines=11) @@ | ||
| 133 | $codePath = $this->app['config']['root_dir'].'/app/Plugin/'.$pluginCode; |
|
| 134 | ||
| 135 | $dirList = array('Entity', 'Repository', 'Resource/doctrine/migration'); |
|
| 136 | foreach ($dirList as $dirName) { |
|
| 137 | $dirPath = $codePath.'/'.$dirName; |
|
| 138 | if (!is_dir($dirPath)) { |
|
| 139 | mkdir($dirPath); |
|
| 140 | } |
|
| 141 | if (is_dir($dirPath)) { |
|
| 142 | $fsList['dir'][$dirPath] = true; |
|
| 143 | } else { |
|
| 144 | $fsList['dir'][$dirPath] = false; |
|
| 145 | } |
|
| 146 | } |
|
| 147 | ||
| 148 | // metadataの設定 |
|
| 149 | $classNames = array(); |
|