Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
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
Yeray Santana Hualde
syncEnrollments
Commits
326b5929
Commit
326b5929
authored
Feb 08, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning up bundler.
parent
fb516f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
bundler.php
laravel/cli/tasks/bundle/bundler.php
+6
-7
No files found.
laravel/cli/tasks/bundle/bundler.php
View file @
326b5929
...
...
@@ -138,17 +138,17 @@ class Bundler extends Task {
// with that name doesn't already exist. If it does, we'll bomb out and
// notify the developer of the problem. Bundle names must be unique
// since classes are prefixed with the name.
$options
[
'name'
]
=
$arguments
[
0
];
$options
[
'name'
]
=
$
name
=
$
arguments
[
0
];
if
(
Bundle
::
exists
(
$
options
[
'name'
]
))
if
(
Bundle
::
exists
(
$
name
))
{
throw
new
\Exception
(
"
A bundle with that nam
e already exists!"
);
throw
new
\Exception
(
"
That bundl
e already exists!"
);
}
// The developer may specify a location to which the bundle should be
// installed. If a location is not specified, the bundle name will
// be used as the default installation location.
$location
=
Request
::
server
(
'cli.location'
)
?:
$
options
[
'name'
]
;
$location
=
Request
::
server
(
'cli.location'
)
?:
$
name
;
$location
=
path
(
'bundle'
)
.
$location
;
...
...
@@ -166,7 +166,7 @@ class Bundler extends Task {
// immediately and the developer can start using it.
File
::
put
(
$location
.
DS
.
'bundle'
.
EXT
,
$info
);
echo
"Bundle [
{
$
options
[
'name'
]
}
] has been created!"
.
PHP_EOL
;
echo
"Bundle [
{
$
name
}
] has been created!"
.
PHP_EOL
;
$this
->
refresh
();
}
...
...
@@ -197,8 +197,7 @@ class Bundler extends Task {
{
// First we'll call the bundle repository to gather the bundle data
// array, which contains all of the information needed to install
// the bundle into the application. We'll verify that the bundle
// exists and the API is responding for each bundle.
// the bundle into the application.
$response
=
$this
->
retrieve
(
$bundle
);
if
(
$response
[
'status'
]
==
'not-found'
)
...
...
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