matthiasstraka / php-invest

Self-hosted stock portfolio tracking software using PHP/Symfony. It tracks portfolios across multiple brokers and automatically updates daily stock data. It allows tracking trades of raw stock and EUSIPA derivatives/instruments.
GNU General Public License v3.0
18 stars 7 forks source link

Failure to view asset show page when no user is logged in #14

Closed matthiasstraka closed 2 years ago

matthiasstraka commented 2 years ago

For some reason, we don't get a user-login page but require a user Reproduce with; 1) start website but do not log in (or log out) 2) Go to /assets and select any asset detail page (e.g. /asset/1) --> Fails to auto-route User class

Cannot autowire argument $user of "App\Controller\AssetController::show()": it references interface "Symfony\Component\Security\Core\User\UserInterface" but no such service exists. Did you create a class that implements this interface?