Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
152e5a0e
Commit
152e5a0e
authored
Jun 03, 2013
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc comments and descriptive output at"AssetController" has been adjusted.
parent
ec8fecb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
AssetController.php
framework/yii/console/controllers/AssetController.php
+8
-8
No files found.
framework/yii/console/controllers/AssetController.php
View file @
152e5a0e
...
@@ -71,7 +71,7 @@ class AssetController extends Controller
...
@@ -71,7 +71,7 @@ class AssetController extends Controller
*/
*/
private
$_assetManager
=
array
();
private
$_assetManager
=
array
();
/**
/**
* @var string|callback Java
Script file compressor.
* @var string|callback JavaScript file compressor.
* If a string, it is treated as shell command template, which should contain
* If a string, it is treated as shell command template, which should contain
* placeholders {from} - source file name - and {to} - output file name.
* placeholders {from} - source file name - and {to} - output file name.
* Otherwise, it is treated as PHP callback, which should perform the compression.
* Otherwise, it is treated as PHP callback, which should perform the compression.
...
@@ -173,7 +173,7 @@ class AssetController extends Controller
...
@@ -173,7 +173,7 @@ class AssetController extends Controller
}
}
}
}
$this
->
getAssetManager
();
// check asset manager configuration is correct
$this
->
getAssetManager
();
// check
if
asset manager configuration is correct
}
}
/**
/**
...
@@ -450,7 +450,7 @@ EOD;
...
@@ -450,7 +450,7 @@ EOD;
}
}
/**
/**
* Compresses given Java
Script files and combines them into the single one.
* Compresses given JavaScript files and combines them into the single one.
* @param array $inputFiles list of source file names.
* @param array $inputFiles list of source file names.
* @param string $outputFile output file name.
* @param string $outputFile output file name.
* @throws \yii\console\Exception on failure
* @throws \yii\console\Exception on failure
...
@@ -508,7 +508,7 @@ EOD;
...
@@ -508,7 +508,7 @@ EOD;
}
}
/**
/**
* Combines Java
Script files into a single one.
* Combines JavaScript files into a single one.
* @param array $inputFiles source file names.
* @param array $inputFiles source file names.
* @param string $outputFile output file name.
* @param string $outputFile output file name.
* @throws \yii\console\Exception on failure.
* @throws \yii\console\Exception on failure.
...
@@ -522,7 +522,7 @@ EOD;
...
@@ -522,7 +522,7 @@ EOD;
.
"/*** END FILE:
$file
***/
\n
"
;
.
"/*** END FILE:
$file
***/
\n
"
;
}
}
if
(
!
file_put_contents
(
$outputFile
,
$content
))
{
if
(
!
file_put_contents
(
$outputFile
,
$content
))
{
throw
new
Exception
(
"Unable to write output Java
Script file '
{
$outputFile
}
'."
);
throw
new
Exception
(
"Unable to write output JavaScript file '
{
$outputFile
}
'."
);
}
}
}
}
...
@@ -621,11 +621,11 @@ EOD;
...
@@ -621,11 +621,11 @@ EOD;
* so corresponding paths should be specified directly.
* so corresponding paths should be specified directly.
*/
*/
return array(
return array(
// The list of asset bundles
, which files should be included to compression
:
// The list of asset bundles
to compress
:
'bundles' => require('path/to/bundles.php'),
'bundles' => require('path/to/bundles.php'),
// The list of extensions
, which asset files should be included to compression
:
// The list of extensions
to compress
:
'extensions' => require('path/to/namespaces.php'),
'extensions' => require('path/to/namespaces.php'),
//
Compression result asset bundle
:
//
Asset bundle for compression output
:
'targets' => array(
'targets' => array(
'all' => array(
'all' => array(
'basePath' => __DIR__,
'basePath' => __DIR__,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment