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
2d170e23
Commit
2d170e23
authored
Sep 04, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more facades.
parent
31e2c1c4
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
45 deletions
+38
-45
aliases.php
application/config/aliases.php
+7
-7
manager.php
laravel/cache/manager.php
+3
-0
manager.php
laravel/database/manager.php
+4
-0
facade.php
laravel/facade.php
+4
-0
authenticator.php
laravel/security/authenticator.php
+3
-10
crypter.php
laravel/security/crypter.php
+3
-0
hasher.php
laravel/security/hashing/hasher.php
+4
-13
manager.php
laravel/session/manager.php
+3
-0
validator.php
laravel/validation/validator.php
+7
-15
No files found.
application/config/aliases.php
View file @
2d170e23
...
@@ -19,19 +19,19 @@ return array(
...
@@ -19,19 +19,19 @@ return array(
*/
*/
'Asset'
=>
'Laravel\\Asset'
,
'Asset'
=>
'Laravel\\Asset'
,
'Auth'
=>
'Laravel\\Security\\Authenticator'
,
'Auth'
=>
'Laravel\\Security\\Authenticator
_Facade
'
,
'Benchmark'
=>
'Laravel\\Benchmark'
,
'Benchmark'
=>
'Laravel\\Benchmark'
,
'Cache'
=>
'Laravel\\Cache\\Manager'
,
'Cache'
=>
'Laravel\\Cache\\Manager
_Facade
'
,
'Config'
=>
'Laravel\\Config_Facade'
,
'Config'
=>
'Laravel\\Config_Facade'
,
'Cookie'
=>
'Laravel\\Cookie_Facade'
,
'Cookie'
=>
'Laravel\\Cookie_Facade'
,
'Crypter'
=>
'Laravel\\Security\\Crypter'
,
'Crypter'
=>
'Laravel\\Security\\Crypter
_Facade
'
,
'DB'
=>
'Laravel\\Database\\Manager'
,
'DB'
=>
'Laravel\\Database\\Manager
_Facade
'
,
'Download'
=>
'Laravel\\Download_Facade'
,
'Download'
=>
'Laravel\\Download_Facade'
,
'Eloquent'
=>
'Laravel\\Database\\Eloquent\\Model'
,
'Eloquent'
=>
'Laravel\\Database\\Eloquent\\Model'
,
'Error'
=>
'Laravel\\Error'
,
'Error'
=>
'Laravel\\Error'
,
'File'
=>
'Laravel\\File_Facade'
,
'File'
=>
'Laravel\\File_Facade'
,
'Form'
=>
'Laravel\\Form_Facade'
,
'Form'
=>
'Laravel\\Form_Facade'
,
'Hasher'
=>
'Laravel\\Security\\Hash
er
'
,
'Hasher'
=>
'Laravel\\Security\\Hash
ing\\Hasher_Facade
'
,
'HTML'
=>
'Laravel\\HTML_Facade'
,
'HTML'
=>
'Laravel\\HTML_Facade'
,
'Inflector'
=>
'Laravel\\Inflector'
,
'Inflector'
=>
'Laravel\\Inflector'
,
'Input'
=>
'Laravel\\Input_Facade'
,
'Input'
=>
'Laravel\\Input_Facade'
,
...
@@ -43,9 +43,9 @@ return array(
...
@@ -43,9 +43,9 @@ return array(
'Redirect'
=>
'Laravel\\Redirect_Facade'
,
'Redirect'
=>
'Laravel\\Redirect_Facade'
,
'Request'
=>
'Laravel\\Request_Facade'
,
'Request'
=>
'Laravel\\Request_Facade'
,
'Response'
=>
'Laravel\\Response_Facade'
,
'Response'
=>
'Laravel\\Response_Facade'
,
'Session'
=>
'Laravel\\Session\\Manager'
,
'Session'
=>
'Laravel\\Session\\Manager
_Facade
'
,
'Str'
=>
'Laravel\\Str'
,
'Str'
=>
'Laravel\\Str'
,
'Validator'
=>
'Laravel\\Validation\\Validator'
,
'Validator'
=>
'Laravel\\Validation\\Validator
_Facade
'
,
'View'
=>
'Laravel\\View_Facade'
,
'View'
=>
'Laravel\\View_Facade'
,
);
);
\ No newline at end of file
laravel/cache/manager.php
View file @
2d170e23
<?php
namespace
Laravel\Cache
;
<?php
namespace
Laravel\Cache
;
use
Laravel\Facade
;
use
Laravel\Container
;
use
Laravel\Container
;
class
Manager_Facade
extends
Facade
{
public
static
$resolve
=
'cache'
;
}
class
Manager
{
class
Manager
{
/**
/**
...
...
laravel/database/manager.php
View file @
2d170e23
<?php
namespace
Laravel\Database
;
<?php
namespace
Laravel\Database
;
use
Laravel\Facade
;
class
Manager_Facade
extends
Facade
{
public
static
$resolve
=
'database'
;
}
class
Manager
{
class
Manager
{
/**
/**
...
...
laravel/facade.php
View file @
2d170e23
...
@@ -6,6 +6,10 @@ abstract class Facade {
...
@@ -6,6 +6,10 @@ abstract class Facade {
* Magic Method for passing methods to a class registered in the IoC container.
* Magic Method for passing methods to a class registered in the IoC container.
* This provides a convenient method of accessing functions on classes that
* This provides a convenient method of accessing functions on classes that
* could not otherwise be accessed staticly.
* could not otherwise be accessed staticly.
*
* Facades allow Laravel to still have a high level of dependency injection
* and testability while still accomodating the common desire to conveniently
* use classes via static methods.
*/
*/
public
static
function
__callStatic
(
$method
,
$parameters
)
public
static
function
__callStatic
(
$method
,
$parameters
)
{
{
...
...
laravel/security/authenticator.php
View file @
2d170e23
<?php
namespace
Laravel\Security
;
<?php
namespace
Laravel\Security
;
use
Laravel\IoC
;
use
Laravel\IoC
;
use
Laravel\Facade
;
use
Laravel\Session\Driver
;
use
Laravel\Session\Driver
;
class
Authenticator_Facade
extends
Facade
{
public
static
$resolve
=
'auth'
;
}
class
Authenticator
{
class
Authenticator
{
/**
/**
...
@@ -51,16 +54,6 @@ class Authenticator {
...
@@ -51,16 +54,6 @@ class Authenticator {
$this
->
session
=
$driver
;
$this
->
session
=
$driver
;
}
}
/**
* Get an authenticator instance from the IoC container.
*
* @return Authenticator
*/
public
static
function
make
()
{
return
IoC
::
container
()
->
resolve
(
'laravel.auth'
);
}
/**
/**
* Determine if the current user of the application is authenticated.
* Determine if the current user of the application is authenticated.
*
*
...
...
laravel/security/crypter.php
View file @
2d170e23
<?php
namespace
Laravel\Security
;
<?php
namespace
Laravel\Security
;
use
Laravel\IoC
;
use
Laravel\IoC
;
use
Laravel\Facade
;
class
Crypter_Facade
extends
Facade
{
public
static
$resolve
=
'crypter'
;
}
class
Crypter
{
class
Crypter
{
...
...
laravel/security/hashing/hasher.php
View file @
2d170e23
<?php
namespace
Laravel\Security\Hashing
;
<?php
namespace
Laravel\Security\Hashing
;
use
Laravel\Facade
;
class
Hasher_Facade
extends
Facade
{
public
static
$resolve
=
'hasher'
;
}
class
Hasher
{
class
Hasher
{
/**
/**
...
@@ -22,19 +26,6 @@ class Hasher {
...
@@ -22,19 +26,6 @@ class Hasher {
$this
->
engine
=
(
is_null
(
$engine
))
?
new
BCrypt
(
10
,
false
)
:
$engine
;
$this
->
engine
=
(
is_null
(
$engine
))
?
new
BCrypt
(
10
,
false
)
:
$engine
;
}
}
/**
* Create a new Hasher instance.
*
* If no hashing engine is provided, the BCrypt engine will be used.
*
* @param Engine $engine
* @return Hasher
*/
public
static
function
make
(
Engine
$engine
=
null
)
{
return
new
static
(
$engine
);
}
/**
/**
* Magic Method for delegating method calls to the hashing engine.
* Magic Method for delegating method calls to the hashing engine.
*
*
...
...
laravel/session/manager.php
View file @
2d170e23
<?php
namespace
Laravel\Session
;
<?php
namespace
Laravel\Session
;
use
Laravel\Facade
;
use
Laravel\Container
;
use
Laravel\Container
;
class
Manager_Facade
extends
Facade
{
public
static
$resolve
=
'session'
;
}
class
Manager
{
class
Manager
{
/**
/**
...
...
laravel/validation/validator.php
View file @
2d170e23
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
use
Laravel\IoC
;
use
Laravel\IoC
;
use
Laravel\Str
;
use
Laravel\Str
;
use
Laravel\Lang
;
use
Laravel\Facade
;
use
Laravel\Lang_Factory
;
class
Validator_Facade
extends
Facade
{
public
static
$resolve
=
'validator'
;
}
class
Validator
{
class
Validator
{
...
@@ -68,24 +71,11 @@ class Validator {
...
@@ -68,24 +71,11 @@ class Validator {
* @param Lang $lang
* @param Lang $lang
* @return void
* @return void
*/
*/
public
function
__construct
(
Lang
$lang
)
public
function
__construct
(
Lang
_Factory
$lang
)
{
{
$this
->
lang
=
$lang
;
$this
->
lang
=
$lang
;
}
}
/**
* Factory for creating new validator instances.
*
* @param array $attributes
* @param array $rules
* @param array $messages
* @return Validator
*/
public
static
function
make
(
$attributes
,
$rules
,
$messages
=
array
())
{
return
IoC
::
resolve
(
'laravel.validator'
)
->
of
(
$attributes
,
$rules
,
$messages
);
}
/**
/**
* Set the attributes, rules, and messages for the validator.
* Set the attributes, rules, and messages for the validator.
*
*
...
@@ -104,6 +94,8 @@ class Validator {
...
@@ -104,6 +94,8 @@ class Validator {
$this
->
attributes
=
$attributes
;
$this
->
attributes
=
$attributes
;
$this
->
messages
=
$messages
;
$this
->
messages
=
$messages
;
$this
->
rules
=
$rules
;
$this
->
rules
=
$rules
;
return
$this
;
}
}
/**
/**
...
...
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