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
75a9591c
Commit
75a9591c
authored
Aug 05, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring constant definition in laravel.php.
parent
668ecaed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
21 deletions
+25
-21
laravel.php
system/laravel.php
+25
-21
No files found.
system/laravel.php
View file @
75a9591c
<?php
namespace
System
;
// --------------------------------------------------------------
// Define the
PHP file extension
.
// Define the
core framework paths
.
// --------------------------------------------------------------
define
(
'EXT'
,
'.php'
);
define
(
'APP_PATH'
,
realpath
(
$application
)
.
'/'
);
define
(
'SYS_PATH'
,
realpath
(
$system
)
.
'/'
);
define
(
'PUBLIC_PATH'
,
realpath
(
$public
)
.
'/'
);
define
(
'PACKAGE_PATH'
,
realpath
(
$packages
)
.
'/'
);
define
(
'MODULE_PATH'
,
realpath
(
$modules
)
.
'/'
);
define
(
'STORAGE_PATH'
,
realpath
(
$storage
)
.
'/'
);
define
(
'BASE_PATH'
,
realpath
(
str_replace
(
'system'
,
''
,
$system
))
.
'/'
);
unset
(
$application
,
$system
,
$public
,
$packages
,
$modules
,
$storage
);
// --------------------------------------------------------------
// Define various other framework paths.
// --------------------------------------------------------------
$constants
=
array
(
'CACHE_PATH'
=>
STORAGE_PATH
.
'cache/'
,
'CONFIG_PATH'
=>
APP_PATH
.
'config/'
,
'DATABASE_PATH'
=>
STORAGE_PATH
.
'db/'
,
'LANG_PATH'
=>
APP_PATH
.
'lang/'
,
'LIBRARY_PATH'
=>
APP_PATH
.
'libraries/'
,
'MODEL_PATH'
=>
APP_PATH
.
'models/'
,
'ROUTE_PATH'
=>
APP_PATH
.
'routes/'
,
'SCRIPT_PATH'
=>
PUBLIC_PATH
.
'js/'
,
'SESSION_PATH'
=>
STORAGE_PATH
.
'sessions/'
,
'STYLE_PATH'
=>
PUBLIC_PATH
.
'css/'
,
'VIEW_PATH'
=>
APP_PATH
.
'views/'
,
);
foreach
(
$constants
as
$key
=>
$value
)
{
define
(
$key
,
$value
);
}
define
(
'CACHE_PATH'
,
STORAGE_PATH
.
'cache/'
);
define
(
'CONFIG_PATH'
,
APP_PATH
.
'config/'
);
define
(
'DATABASE_PATH'
,
STORAGE_PATH
.
'db/'
);
define
(
'LANG_PATH'
,
APP_PATH
.
'lang/'
);
define
(
'LIBRARY_PATH'
,
APP_PATH
.
'libraries/'
);
define
(
'MODEL_PATH'
,
APP_PATH
.
'models/'
);
define
(
'ROUTE_PATH'
,
APP_PATH
.
'routes/'
);
define
(
'SCRIPT_PATH'
,
PUBLIC_PATH
.
'js/'
);
define
(
'SESSION_PATH'
,
STORAGE_PATH
.
'sessions/'
);
define
(
'STYLE_PATH'
,
PUBLIC_PATH
.
'css/'
);
define
(
'VIEW_PATH'
,
APP_PATH
.
'views/'
);
unset
(
$constants
,
$system
);
// --------------------------------------------------------------
// Define the PHP file extension.
// --------------------------------------------------------------
define
(
'EXT'
,
'.php'
);
// --------------------------------------------------------------
// Load the classes used by the auto-loader.
...
...
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