| @@ 366-375 (lines=10) @@ | ||
| 363 | 'dependency' => $contentItem->getNamespace(), |
|
| 364 | )); |
|
| 365 | } |
|
| 366 | elseif ($this->dm->isHandled($filePath)) |
|
| 367 | { |
|
| 368 | $change = $this->dm->createNewItem($filePath); |
|
| 369 | TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems()); |
|
| 370 | ||
| 371 | $this->compiler->compileSome(array( |
|
| 372 | 'namespace' => 'data', |
|
| 373 | 'dependency' => $change, |
|
| 374 | )); |
|
| 375 | } |
|
| 376 | elseif (!is_null($this->tm) && $this->tm->isHandled($filePath)) |
|
| 377 | { |
|
| 378 | $this->tm->createNewItem($filePath); |
|
| @@ 416-425 (lines=10) @@ | ||
| 413 | 'dependency' => $contentItem->getNamespace(), |
|
| 414 | )); |
|
| 415 | } |
|
| 416 | elseif ($this->dm->isTracked($filePath)) |
|
| 417 | { |
|
| 418 | $change = $this->dm->refreshItem($filePath); |
|
| 419 | TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems()); |
|
| 420 | ||
| 421 | $this->compiler->compileSome(array( |
|
| 422 | 'namespace' => 'data', |
|
| 423 | 'dependency' => $change, |
|
| 424 | )); |
|
| 425 | } |
|
| 426 | elseif (!is_null($this->tm) && $this->tm->isTracked($filePath)) |
|
| 427 | { |
|
| 428 | $this->tm->refreshItem($filePath); |
|