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
56daba42
Commit
56daba42
authored
Nov 10, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove composers from ioc container. remove comment bloat from autoloader.
parent
0fd88b67
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
autoloader.php
laravel/autoloader.php
+0
-4
container.php
laravel/config/container.php
+0
-6
view.php
laravel/view.php
+1
-1
No files found.
laravel/autoloader.php
View file @
56daba42
...
...
@@ -64,10 +64,6 @@ class Autoloader {
// If the namespace has been registered as a PSR-0 compliant library, we will
// load the library according to the PSR-0 naming standards, which state that
// namespaces and underscores indicate the directory hierarchy of the class.
//
// The PSR-0 standard is exactly like the typical Laravel standard, the only
// difference being that Laravel files are all lowercase, while PSR-0 states
// that the file name should match the class name.
if
(
isset
(
static
::
$libraries
[
$library
]))
{
return
str_replace
(
'_'
,
'/'
,
$file
)
.
EXT
;
...
...
laravel/config/container.php
View file @
56daba42
...
...
@@ -2,12 +2,6 @@
return
array
(
'laravel.view.composers'
=>
array
(
'singleton'
=>
true
,
'resolver'
=>
function
()
{
return
require
APP_PATH
.
'composers'
.
EXT
;
}),
'laravel.routing.router'
=>
array
(
'singleton'
=>
true
,
'resolver'
=>
function
(
$c
)
{
return
new
Routing\Router
(
$c
->
core
(
'routing.loader'
),
CONTROLLER_PATH
);
...
...
laravel/view.php
View file @
56daba42
...
...
@@ -193,7 +193,7 @@ class View {
*/
protected
static
function
composers
()
{
static
::
$composers
=
IoC
::
container
()
->
core
(
'view.composers'
)
;
static
::
$composers
=
require
APP_PATH
.
'composers'
.
EXT
;
}
/**
...
...
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