Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
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
sinan
laravel-mongodb
Commits
2d2704c6
Commit
2d2704c6
authored
Mar 22, 2015
by
Jens Segers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dump tests/bootstrap.php
parent
84d8fd5e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
11 deletions
+10
-11
composer.json
composer.json
+7
-0
phpunit.xml
phpunit.xml
+1
-1
PasswordResetServiceProvider.php
src/Jenssegers/Mongodb/Auth/PasswordResetServiceProvider.php
+2
-0
bootstrap.php
tests/bootstrap.php
+0
-10
No files found.
composer.json
View file @
2d2704c6
...
...
@@ -27,6 +27,13 @@
"Jenssegers
\\
Eloquent"
:
"src/"
}
},
"autoload-dev"
:
{
"classmap"
:
[
"tests/TestCase.php"
,
"tests/models"
,
"tests/seeds"
]
},
"suggest"
:
{
"jenssegers/mongodb-session"
:
"Add MongoDB session support to Laravel-MongoDB"
,
"jenssegers/mongodb-sentry"
:
"Add Sentry support to Laravel-MongoDB"
...
...
phpunit.xml
View file @
2d2704c6
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals=
"false"
backupStaticAttributes=
"false"
bootstrap=
"
tests/bootstrap
.php"
bootstrap=
"
vendor/autoload
.php"
colors=
"true"
convertErrorsToExceptions=
"true"
convertNoticesToExceptions=
"true"
...
...
src/Jenssegers/Mongodb/Auth/PasswordResetServiceProvider.php
View file @
2d2704c6
...
...
@@ -14,12 +14,14 @@ class PasswordResetServiceProvider extends \Illuminate\Auth\Passwords\PasswordRe
$this
->
app
->
singleton
(
'auth.password.tokens'
,
function
(
$app
)
{
$connection
=
$app
[
'db'
]
->
connection
();
// The database token repository is an implementation of the token repository
// interface, and is responsible for the actual storing of auth tokens and
// their e-mail addresses. We will inject this table and hash key to it.
$table
=
$app
[
'config'
][
'auth.password.table'
];
$key
=
$app
[
'config'
][
'app.key'
];
$expire
=
$app
[
'config'
]
->
get
(
'auth.password.expire'
,
60
);
return
new
DbRepository
(
$connection
,
$table
,
$key
,
$expire
);
});
}
...
...
tests/bootstrap.php
deleted
100644 → 0
View file @
84d8fd5e
<?php
$loader
=
require
'vendor/autoload.php'
;
// Could not figure out how to add this to the loader
require
'TestCase.php'
;
// Add stuff to autoload
$loader
->
add
(
''
,
'tests/models'
);
$loader
->
add
(
''
,
'tests/seeds'
);
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