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