Skip to content

Commit 1ffed63

Browse files
authored
Merge pull request #47 from RhubarbPHP/feature/DeployViewBridges
Don’t need checks for developer mode anymore
2 parents 588b005 + 9c907b6 commit 1ffed63

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
### 1.3.23
4+
5+
* Removed: developerMode control of resource packages
6+
37
### 1.3.22
48

59
* Added: XSS protection methods to the View

src/Views/View.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,7 @@ final public function renderContent($viewIndex = null)
403403

404404
if ($viewBridge) {
405405
if ($resourcePackage) {
406-
if (Application::current()->developerMode) {
407-
$urls = $resourcePackage->deploy();
408-
} else {
409-
$urls = $resourcePackage->getDeployedUrls();
410-
}
411-
412-
$allDeployedUrls = array_merge($allDeployedUrls, $urls, $this->getAdditionalResourceUrls());
406+
$allDeployedUrls = array_merge($allDeployedUrls, $resourcePackage->deploy(), $this->getAdditionalResourceUrls());
413407
}
414408

415409
if (self::$viewBridgeRegistrationCallback != null) {
@@ -463,7 +457,7 @@ final public function renderContent($viewIndex = null)
463457

464458
}
465459

466-
if (($resourcePackage != null) && (Application::current()->developerMode)) {
460+
if ($resourcePackage != null) {
467461
$resourcePackage->deploy();
468462
}
469463

0 commit comments

Comments
 (0)