| @@ 333-342 (lines=10) @@ | ||
| 330 | 'dependency' => $contentItem->getCollection(), |
|
| 331 | )); |
|
| 332 | } |
|
| 333 | elseif ($this->dm->isHandled($filePath)) |
|
| 334 | { |
|
| 335 | $change = $this->dm->createNewItem($filePath); |
|
| 336 | TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems()); |
|
| 337 | ||
| 338 | $this->compiler->compileSome(array( |
|
| 339 | 'namespace' => 'data', |
|
| 340 | 'dependency' => $change, |
|
| 341 | )); |
|
| 342 | } |
|
| 343 | elseif (!is_null($this->tm) && $this->tm->isHandled($filePath)) |
|
| 344 | { |
|
| 345 | $this->tm->createNewItem($filePath); |
|
| @@ 380-389 (lines=10) @@ | ||
| 377 | 'dependency' => $contentItem->getCollection(), |
|
| 378 | )); |
|
| 379 | } |
|
| 380 | elseif ($this->dm->isTracked($filePath)) |
|
| 381 | { |
|
| 382 | $change = $this->dm->refreshItem($filePath); |
|
| 383 | TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems()); |
|
| 384 | ||
| 385 | $this->compiler->compileSome(array( |
|
| 386 | 'namespace' => 'data', |
|
| 387 | 'dependency' => $change, |
|
| 388 | )); |
|
| 389 | } |
|
| 390 | elseif (!is_null($this->tm) && $this->tm->isTracked($filePath)) |
|
| 391 | { |
|
| 392 | $this->tm->refreshItem($filePath); |
|