Comments (13)
i used 2.0, i upgrade reference blog example. It was okay before
from demo.
Sorry , i don't add auth middleware to rule. so can't get it. Very very sorry!
from demo.
What is "CurrentRequest" from issue theme?
Is problem with "UserRequest"? Please, show code of this class.
from demo.
UserRequest class
<?php
declare(strict_types=1);
namespace App\User;
use Yiisoft\Auth\Middleware\Authentication;
use Yiisoft\Input\Http\Attribute\Parameter\Request;
use Yiisoft\Input\Http\RequestInputInterface;
final class UserRequest implements RequestInputInterface
{
#[Request(Authentication::class)]
private User $user;
public function getUser(): User
{
return $this->user;
}
}
from demo.
Seems, you need to use request catcher. There are to make it two ways.
-
Use
RequestCatcherParametersResolver
in middleware dispatcher. Example here: https://github.com/yiisoft/demo/blob/master/blog-api/config/web/di/middleware-dispatcher.php#L12 -
Add
RequestCatcherMiddleware
to list of your middlewares
from demo.
I already use first way, but invalid
from demo.
Is setting error?
from demo.
Hm. Does it work before release Yii User 2.1?
from demo.
I tested demo, everything is working correctly.
May be you don't configure hydrator: https://github.com/yiisoft/demo/blob/master/blog-api/config/common/di/hydrator.php ?
PR with demo adaptation: #599. May be it help you...
from demo.
Have been configured
from demo.
I rollback it, Wait till I have time to test
A lot of things have not been officially released, and there are still a lot of questions. Of course, it has something to do with my unfamiliarity.
from demo.
When are you ready to release Yii3?
from demo.
When are you ready to release Yii3?
I hope that soon. Currently we hard work with code (hydrator and forms almost ready), then planned create/improve docs.
I rollback it, Wait till I have time to test
I moved tihs issue to demo repo.
from demo.
Related Issues (20)
- Raise psalm level to 6
- Minor Issue: Dependency Checker - The following 6 unknown symbols were found HOT 5
- No definition or class found or resolvable for "Yiisoft\Translator\MessageReaderInterface" while building "Yiisoft\Translator\MessageReaderInterface". HOT 1
- add fixture error HOT 1
- Yiisoft\Di\NotFoundException No definition or class found or resolvable for "Yiisoft\Validator\RuleHandlerContainer" while building "Yiisoft\Validator\RuleHandlerContainer". HOT 1
- could some body release a zip file with the installed vendor folder? HOT 1
- PHP Compile Error — Yiisoft\ErrorHandler\Exception\ErrorException Declaration of Yiisoft\Yii\Cycle\Data\Reader\EntityReader::withLimit(int $limit): Yiisoft\Yii\Cycle\Data\Reader\EntityReader must be compatible with Yiisoft\Data\Reader\ReadableDataInterface::withLimit(int $limit): Composer\Autoload\ClassLoader HOT 3
- PHP Fatal Error — Yiisoft\ErrorHandler\Exception\ErrorException Class Yiisoft\Yii\Cycle\Data\Reader\EntityReader contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Yiisoft\Data\Reader\FilterableDataInterface::withFilterHandlers) HOT 6
- update links
- Composer install error HOT 1
- PHP Fatal Error — Yiisoft\ErrorHandler\Exception\ErrorException Class App\Widget\FlashMessage contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Yiisoft\Widget\Widget::render) HOT 3
- it seem the url parameter can be removed? HOT 2
- Fix tests after the latest `Locale` middleware changes HOT 2
- Move language groups to params, configure translator HOT 1
- Registration doesn't work with SQLite
- Incorrect attribute in `blog/src/User/Controller/UserController.php` HOT 5
- Fix SSL autorenewing
- Bad URI prefix — Yiisoft\Yii\Middleware\Exception\BadUriPrefixException HOT 4
- Yiisoft\Assets\Exception\InvalidConfigException The sourcePath to be published does not exist: C:\wamp64\www\demo\blog/node_modules/bootstrap/dist HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo.