Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named parameter $refUrl used at the same time as a positional in LinkGenerator::__construct(). #265

Closed
zabous opened this issue Oct 1, 2021 · 0 comments

Comments

@zabous
Copy link

zabous commented Oct 1, 2021

Version: 3.0.10

Bug Description

Using LinkGenerator for sending emails from CLI - described in https://phpfashion.com/generovani-odkazu-kuprikladu-v-emailech-a-nette
This error occurs: Named parameter $refUrl used at the same time as a positional in LinkGenerator::__construct().
In previous version of nette/di was everything OK.

Steps To Reproduce

To reproduce use this config.neon:

services:
application.linkGenerator:
arguments:
refUrl: Nette\Http\UrlScript('http://example.com')

Expected Behavior

No errors occurs and I can use LinkGenerator with defined refUrl

dg added a commit that referenced this issue Oct 3, 2021
…ing a named and positional parameter" [Closes #265]

This partially reverts commit 4f0cb0b.
@zabous zabous closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant