Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/httpPublic
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Test and fix nette/http#15 - Session::configure overrides setHandler set...#18

Closed
lexaurin wants to merge1 commit intonette:masterfromwikidi:issue15

Conversation

lexaurin
Copy link
Contributor

...tings

  • this commit introduces unit test dependency on redis php extension. Don't know how to avoid it..

Issue:#15

  * this commit introduces unit test dependency on redis php extension. Don't know how to avoid it..

require __DIR__ . '/../bootstrap.php';


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@fprochazka
Copy link
Contributor

You don't have to install the redis php extension? I didn't know it's installed by default.

$factory = new Nette\Http\RequestFactory;
$session = new Nette\Http\Session($factory->createHttpRequest(), new Nette\Http\Response);

$session->setOptions(array('save_handler' => 'redis', 'save_path' => 'tcp://127.0.0.1:6379')); //or anything different from default - memcached, memcache, mysql..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

What about to use$session->setOptions(array('save_handler' => 'files')) - and test can work without redis.

@JanTvrdik
Copy link
Contributor

@lexvjatkin ping, can you rework this?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@lexaurin@fprochazka@JanTvrdik@Majkl578@dg

[8]ページ先頭

©2009-2025 Movatter.jp