@@ 73-86 (lines=14) @@ | ||
70 | * @param string $content |
|
71 | * @param string $filename |
|
72 | */ |
|
73 | public function processContent($content, $filename = null) |
|
74 | { |
|
75 | $data = $this->parseContent($content); |
|
76 | $data += array('project' => basename($filename, '.info'), 'version' => ''); |
|
77 | ||
78 | $project = new Project($data['project'], $data['core'], $data['version']); |
|
79 | $project->setDetails($data); |
|
80 | ||
81 | if (!empty($filename)) { |
|
82 | $project->setFilename(realpath($filename)); |
|
83 | } |
|
84 | ||
85 | $this->project = $project; |
|
86 | } |
|
87 | ||
88 | /** |
|
89 | * @param string $filename |
@@ 74-87 (lines=14) @@ | ||
71 | * @param string $content |
|
72 | * @param string $filename |
|
73 | */ |
|
74 | public function processContent($content, $filename = null) |
|
75 | { |
|
76 | $data = $this->parseContent($content); |
|
77 | $data += array('project' => basename($filename, '.info.yml'), 'version' => ''); |
|
78 | ||
79 | $project = new Project($data['project'], $data['core'], $data['version']); |
|
80 | $project->setDetails($data); |
|
81 | ||
82 | if (!empty($filename)) { |
|
83 | $project->setFilename(realpath($filename)); |
|
84 | } |
|
85 | ||
86 | $this->project = $project; |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * @param string $content |