nucleos / nucleosuserbundle Goto Github PK
View Code? Open in Web Editor NEW👤 Lightweight user management for symfony.
Home Page: https://docs.nucleos.rocks/projects/user-bundle/
License: MIT License
👤 Lightweight user management for symfony.
Home Page: https://docs.nucleos.rocks/projects/user-bundle/
License: MIT License
i would need to remove some of the Validations when using this bundle in one of my projects.
Long Story short, i need to be able to have the users share an email address, and the Unique Email Address Validator can't be disabled.
https://symfony.com/doc/current/bundles/override.html#validation-metadata says, the best way how to make this done, would be to have an option in the bundle to change the validation group.
The default route nucleos_profile_profile_show
should be overrideable.
Hi there,
I read the documentation, but I didn't find any part to override login.html.twig template.
While I follow the symfony reference, it doesn't works.
https://symfony.com/doc/4.4/controller/error_pages.html#overriding-the-default-error-templates
The created twig root path :
templates/bundles/user-bundle/Security/login.html.twig
I would prefer if the default forms shipped with the bundle (LoginFormType
) would not contain a button. It makes the form class a lot more reusable as currently I have to create form extension just to remove it as otherwise the styling of my page would be off.
Hello,
Following migration to Symfony 5.3, I have the following deprecation message:
Since symfony/security-bundle 5.3: The "security.encoder_factory" service is deprecated, use "security.password_hasher_factory" instead. It is being referenced by the "nucleos_user.util.password_updater" service.
Since symfony/framework-bundle 5.3: The "session" service and "SessionInterface" alias are deprecated, use "$requestStack->getSession()" instead. It is being referenced by the "nucleos_user.session" alias.
Any idea on how to resolve that?
Hi,
since Doctrine\UserManager has become a final class we can't extend anymore, while it was possible in fosuserbundle.
Which is the right way with Nucleos ?
Thanks.
I upgraded my symfony project from 4.x to 5.x along with PHP 7.4 to 8.0. This was a month back or so and I had no issues with the login. Today my login just didn't work. No error, I just couldn't log in with any user. No idea what was going on. I was using Nucleos v1.3, so I figured I upgrade it to v2. Maybe this will work better with PHP 8 and symfony 5.
When I tried to log in I got the following error:
"Typed property Nucleos\UserBundle\Model\User::$groups must not be accessed before initialization"
As a work-around I overwrote getGroups() and simply returned an empty ArrayCollection as I do not use groups in my project.
It seems the constructor of my User object is not called. And therefore the groups property is not initialized when the UserAuthenticateProvider calls $user->getRoles() which also uses the groups.
doctrine/annotations 1.13.2 1.13.2 Docblock Annotations Parser
doctrine/cache 2.1.1 2.1.1 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and ot...
doctrine/collections 1.6.8 1.6.8 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.2.1 3.2.1 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflecti...
doctrine/data-fixtures 1.5.1 1.5.2 Data Fixtures for all Doctrine Object Managers
doctrine/dbal 3.3.0 3.3.0 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v0.5.3 v0.5.3 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/doctrine-bundle 2.5.5 2.5.5 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.4.1 3.4.1 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 3.2.1 3.2.1 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.1 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector 2.0.4 2.0.4 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of wo...
doctrine/instantiator 1.4.0 1.4.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.2 1.2.2 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.4.0 3.4.0 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database sc...
doctrine/orm 2.11.0 2.11.0 Object-Relational-Mapper for PHP
doctrine/persistence 2.3.0 2.3.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/sql-formatter 1.1.2 1.1.2 a PHP SQL highlighting library
egulias/email-validator 3.1.2 3.1.2 A library for validating emails against several RFCs
friendsofphp/proxy-manager-lts v1.0.5 v1.0.5 Adding support for a wider range of PHP versions to ocramius/proxy-manager
imagine/imagine 1.2.4 1.2.4 Image processing for PHP 5.3
jms/translation-bundle 1.6.1 1.6.1 Puts the Symfony Translation Component on steroids
laminas/laminas-code 4.5.1 4.5.1 Extensions to the PHP Reflection API, static code scanning, and code generation
league/flysystem 1.1.9 3.0.1 Filesystem abstraction: Many filesystems, one API.
league/mime-type-detection 1.9.0 1.9.0 Mime-type detection for Flysystem
liip/imagine-bundle 2.7.6 2.7.6 This bundle provides an image manipulation abstraction toolkit for Symfony-based projects.
myclabs/deep-copy 1.10.2 1.10.2 Create deep copies (clones) of your objects
nikic/php-parser v4.13.2 v4.13.2 A PHP parser written in PHP
nucleos/user-bundle 2.0.0 2.0.0 Lightweight user management for symfony
oneup/flysystem-bundle 3.7.1 4.3.0 Integrates Flysystem filesystem abstraction library to your Symfony project.
oneup/uploader-bundle 3.1.3 3.1.3 This Symfony bundle provides a server implementation for handling single and multiple file uploads using either FineUploader, jQuery File Uplo...
phar-io/manifest 2.0.3 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 3.1.0 3.1.0 Library for handling version information and constraints
phpdocumentor/reflection-common 2.2.0 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.3.0 5.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBl...
phpdocumentor/type-resolver 1.6.0 1.6.0 A PSR-5 based resolver of Class names, Types and Structural Element Names
phpspec/prophecy v1.15.0 v1.15.0 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage 9.2.10 9.2.10 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 3.0.6 3.0.6 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker 3.1.1 3.1.1 Invoke callables with a timeout
phpunit/php-text-template 2.0.4 2.0.4 Simple template engine.
phpunit/php-timer 5.0.3 5.0.3 Utility class for timing
phpunit/phpunit 9.5.11 9.5.13 The PHP Unit Testing framework.
psr/cache 2.0.0 3.0.0 Common interface for caching libraries
psr/container 1.1.2 2.0.2 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 1.0.0 Standard interfaces for event handling.
psr/link 1.1.1 2.0.1 Common interfaces for HTTP links
psr/log 2.0.0 3.0.0 Common interface for logging libraries
sebastian/cli-parser 1.0.1 1.0.1 Library for parsing CLI options
sebastian/code-unit 1.0.8 1.0.8 Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3 2.0.3 Looks up which function or method a line of code belongs to
sebastian/comparator 4.0.6 4.0.6 Provides the functionality to compare PHP values for equality
sebastian/complexity 2.0.2 2.0.2 Library for calculating the complexity of PHP code units
sebastian/diff 4.0.4 4.0.4 Diff implementation
sebastian/environment 5.1.3 5.1.3 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 4.0.4 4.0.4 Provides the functionality to export PHP variables for visualization
sebastian/global-state 5.0.3 5.0.3 Snapshotting of global state
sebastian/lines-of-code 1.0.3 1.0.3 Library for counting the lines of code in PHP source code
sebastian/object-enumerator 4.0.4 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 2.0.4 2.0.4 Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context 4.0.4 4.0.4 Provides functionality to recursively process PHP variables
sebastian/resource-operations 3.0.3 3.0.3 Provides a list of PHP built-in functions that operate on resources
sebastian/type 2.3.4 2.3.4 Collection of value objects that represent the types of the PHP type system
sebastian/version 3.0.2 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects
sensio/framework-extra-bundle v5.6.1 v6.2.6 This bundle provides a way to configure your controllers with annotations
symfony/apache-pack v1.0.1 v1.0.1 A pack for Apache support in Symfony
symfony/asset v5.4.0 v6.0.3 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit v5.4.2 v6.0.3 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/cache v5.4.3 v6.0.3 Provides an extended PSR-6, PSR-16 (and tags) implementation
symfony/cache-contracts v2.5.0 v3.0.0 Generic abstractions related to caching
symfony/config v5.4.3 v6.0.3 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console v5.4.3 v6.0.3 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v5.4.2 v6.0.3 Converts CSS selectors to XPath expressions
symfony/debug-bundle v5.4.2 v6.0.3 Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
symfony/dependency-injection v5.4.3 v6.0.3 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts v3.0.0 v3.0.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge v5.4.2 v6.0.3 Provides integration for Doctrine with various Symfony components
symfony/dom-crawler v5.4.2 v6.0.3 Eases DOM navigation for HTML and XML documents
symfony/dotenv v5.4.2 v6.0.3 Registers environment variables from a .env file
symfony/error-handler v5.4.3 v6.0.3 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v5.4.3 v6.0.3 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v2.5.0 v3.0.0 Generic abstractions related to dispatching event
symfony/expression-language v5.4.0 v6.0.3 Provides an engine that can compile and evaluate expressions
symfony/filesystem v5.4.3 v6.0.3 Provides basic utilities for the filesystem
symfony/finder v5.4.3 v6.0.3 Finds files and directories via an intuitive fluent interface
symfony/flex v2.1.2 v2.1.4 Composer plugin for Symfony
symfony/form v5.4.3 v6.0.3 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v5.4.3 v6.0.3 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v5.4.2 v6.0.3 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts v2.5.0 v3.0.0 Generic abstractions related to HTTP clients
symfony/http-foundation v5.4.3 v6.0.3 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v5.4.3 v6.0.3 Provides a structured process for converting a Request into a Response
symfony/intl v5.4.3 v6.0.3 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/mailer v5.4.3 v6.0.3 Helps sending emails
symfony/maker-bundle v1.36.4 v1.36.4 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime v5.4.3 v6.0.3 Allows manipulating MIME messages
symfony/options-resolver v5.4.3 v6.0.3 Provides an improved replacement for the array_replace PHP function
symfony/password-hasher v5.4.3 v6.0.3 Provides password hashing utilities
symfony/phpunit-bridge v5.4.0 v6.0.3 Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-intl-grapheme v1.24.0 v1.24.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-icu v1.24.0 v1.24.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.24.0 v1.24.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.24.0 v1.24.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.24.0 v1.24.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.24.0 v1.24.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.24.0 v1.24.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.24.0 v1.24.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.24.0 v1.24.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process v5.4.2 v6.0.3 Executes commands in sub-processes
symfony/property-access v5.4.3 v6.0.3 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v5.4.3 v6.0.3 Extracts information about PHP class' properties using metadata of popular sources
symfony/proxy-manager-bridge v5.4.2 v6.0.3 Provides integration for ProxyManager with various Symfony components
symfony/routing v5.4.3 v6.0.3 Maps an HTTP request to a set of configuration variables
symfony/runtime v5.4.1 v6.0.3 Enables decoupling PHP applications from global state
symfony/security-bundle v5.4.3 v6.0.3 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core v5.4.3 v6.0.3 Symfony Security Component - Core Library
symfony/security-csrf v5.4.3 v6.0.3 Symfony Security Component - CSRF Library
symfony/security-guard v5.4.3 v5.4.3 Symfony Security Component - Guard
symfony/security-http v5.4.3 v6.0.3 Symfony Security Component - HTTP Integration
symfony/serializer v5.4.2 v6.0.3 Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts v2.4.1 v3.0.0 Generic abstractions related to writing services
symfony/stopwatch v5.4.0 v6.0.3 Provides a way to profile code
symfony/string v5.4.3 v6.0.3 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/templating v5.4.0 v6.0.3 Provides all the tools needed to build any kind of template system
symfony/translation v5.4.3 v6.0.3 Provides tools to internationalize your application
symfony/translation-contracts v2.5.0 v3.0.0 Generic abstractions related to translation
symfony/twig-bridge v5.4.3 v6.0.3 Provides integration for Twig with various Symfony components
symfony/twig-bundle v5.4.3 v6.0.3 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v5.4.3 v6.0.3 Provides tools to validate values
symfony/var-dumper v5.4.3 v6.0.3 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v5.4.3 v6.0.3 Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-link v5.4.0 v6.0.3 Manages links between resources
symfony/web-profiler-bundle v5.4.2 v6.0.3 Provides a development tool that gives detailed information about the execution of any request
symfony/webpack-encore-bundle v1.13.2 v1.13.2 Integration with your Symfony app & Webpack Encore!
symfony/workflow v5.4.2 v6.0.3 Provides tools for managing a workflow or finite state machine
symfony/yaml v5.4.2 v6.0.3 Loads and dumps YAML files
theseer/tokenizer 1.2.1 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats
twig/extra-bundle v3.3.7 v3.3.7 A Symfony bundle for extra Twig extensions
twig/twig v3.3.7 v3.3.7 Twig, the flexible, fast, and secure template language for PHP
webmozart/assert 1.10.0 1.10.0 Assertions to validate method input/output with nice error messages.
PHP 8.0.8 (cli) (built: Sep 30 2021 13:54:04) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies
with Xdebug v3.0.3, Copyright (c) 2002-2021, by Derick Rethans
I'm trying to install nucleos/user-bundle
but I get a deprecation error:
- nucleos/user-bundle[1.11.0, ..., 1.12.x-dev] require egulias/email-validator ^2.1.10 -> found egulias/email-validator[dev-master, 2.1.10, ..., 2.1.x-dev (alias of dev-master)]
but the package is fixed to 3.1.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
I've found the pull request #307 that has been closed without explaination so I'm just wondering.
I'm using the latest stable Symfony: 5.3.4.
Thanks...
Allow using this bundle with 0 configuration using symfony flex.
Das some notes how to install this bundle.
Hey,
I've followed the steps mentioned here: https://symfony.com/doc/current/security/impersonating_user.html
Then I tried using the switch_user
url thing and nothing worked.
Am I doing something wrong or is this something that somehow needs to be enabled somewhere in Nucleos code?
Thanks
Simplify this bundle by using the new guard system
Fetch the user locale from the database and update the locale for the session. There should be a toggle for this feature.
Port this class: https://github.com/sonata-project/SonataIntlBundle/blob/03255d2ba682aa94a4b2a686c7132a292e433004/src/Timezone/UserBasedTimezoneDetector.php
Hello,
With the new 1.6.0 version that use symfony forms, the form from login has not any error after the login fail.
I think it is because the form isn't submitted: https://github.com/nucleos/NucleosUserBundle/blob/main/src/Action/LoginAction.php#L94
For the other hand error var is always null, So I can't catch the error using this variable neither.
https://github.com/nucleos/NucleosUserBundle/blob/main/src/Action/LoginAction.php#L106
Thank you
Remove explicit bootstrap_3_horizontal_layout.html.twig
usage and rely on the default form theme.
FosUserBundle is going to be implemented in SonataUserBundle. am I right? Why should I update FosUserBunlde to this while I wait it to happen?
Would it make sense to simplify this bundle by using https://github.com/SymfonyCasts/reset-password-bundle ?
We could still use our own events if needed.
Add a rector script for easy FOSUserBundle migration:
First of all, thank you so much for all the work done within this package.
It has better handling than FOSUserBundle.
I appreciate the effort.
$ composer show --latest
brick/math 0.9.1 0.9.1 Arbitrary-precision arithmetic library
composer/package-versions-deprecated 1.11.99 1.11.99 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
doctrine/annotations 1.11.1 1.11.1 Docblock Annotations Parser
doctrine/cache 1.10.2 1.10.2 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/collections 1.6.7 1.6.7 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 2.13.3 3.0.2 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.
doctrine/dbal 2.12.0 2.12.0 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/doctrine-bundle 2.1.2 2.1.2 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.0.1 3.0.1 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.1 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector 1.4.3 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator 1.3.1 1.3.1 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.1 1.2.1 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.0.1 3.0.1 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for versioning your database schema and easily deploying changes to it. It is a very easy to use and a p...
doctrine/orm 2.7.4 2.7.4 Object-Relational-Mapper for PHP
doctrine/persistence 1.3.8 2.1.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
doctrine/reflection 1.2.2 1.2.2 The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional functionality on top of the reflection functionality that comes with PHP. It allows you to get the...
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
doctrine/sql-formatter 1.1.1 1.1.1 a PHP SQL highlighting library
egulias/email-validator 2.1.23 2.1.23 A library for validating emails against several RFCs
friendsofsymfony/rest-bundle 3.0.3 3.0.3 This Bundle provides various tools to rapidly develop RESTful API's with Symfony
jms/metadata 2.3.0 2.3.0 Class/method/property metadata management in PHP
jms/serializer 3.9.0 3.10.0 Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.
jms/serializer-bundle 3.7.0 3.7.0 Allows you to easily serialize, and deserialize data of any complexity
laminas/laminas-code 3.4.1 3.4.1 Extensions to the PHP Reflection API, static code scanning, and code generation
laminas/laminas-eventmanager 3.3.0 3.3.0 Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge 1.1.1 1.1.1 Alias legacy ZF class names to Laminas Project equivalents.
league/tactician v1.0.3 v1.0.3 A small, flexible command bus. Handy for building service layers.
league/tactician-bundle v1.2.0 v1.2.0 Bundle to integrate Tactician with Symfony projects
league/tactician-container 2.0.0 2.0.0 Tactician integration for any container implementing PSR-11
league/tactician-logger v0.10.0 v0.10.0 Adds PSR-3 logging support to the Tactician command bus
mnsami/command-bus 2.0 2.0 Very simple command-bus implementation
monolog/monolog 1.25.5 2.1.1 Sends your logs to files, sockets, inboxes, databases and various web services
nikic/php-parser v4.10.2 v4.10.2 A PHP parser written in PHP
nucleos/user-bundle 1.4.0 1.4.0 Lightweight user management for symfony
nyholm/psr7 1.3.1 1.3.1 A fast PHP7 implementation of PSR-7
ocramius/proxy-manager 2.9.1 2.9.1 A library providing utilities to generate, instantiate and generally operate with Object Proxies
php-http/message-factory v1.0.2 v1.0.2 Factory interfaces for PSR-7 HTTP Message
psr/cache 1.0.1 1.0.1 Common interface for caching libraries
psr/container 1.0.0 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/http-factory 1.0.1 1.0.1 Common interfaces for PSR-7 HTTP message factories
psr/http-message 1.0.1 1.0.1 Common interface for HTTP messages
psr/log 1.1.3 1.1.3 Common interface for logging libraries
ramsey/collection 1.1.1 1.1.1 A PHP 7.2+ library for representing and manipulating collections.
ramsey/uuid 4.1.1 4.1.1 A PHP library for generating and working with universally unique identifiers (UUIDs).
sensio/framework-extra-bundle v5.6.1 v5.6.1 This bundle provides a way to configure your controllers with annotations
symfony/cache v4.4.16 v5.1.8 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts v2.2.0 v2.2.0 Generic abstractions related to caching
symfony/config v4.4.16 v5.1.8 Symfony Config Component
symfony/console v4.4.16 v5.1.8 Symfony Console Component
symfony/debug v4.4.16 v4.4.16 Symfony Debug Component
symfony/dependency-injection v4.4.16 v5.1.8 Symfony DependencyInjection Component
symfony/doctrine-bridge v4.4.15 v5.1.8 Symfony Doctrine Bridge
symfony/dotenv v4.4.15 v5.1.8 Registers environment variables from a .env file
symfony/error-handler v4.4.16 v5.1.8 Symfony ErrorHandler Component
symfony/event-dispatcher v4.4.16 v5.1.8 Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v1.1.9 v2.2.0 Generic abstractions related to dispatching event
symfony/filesystem v4.4.16 v5.1.8 Symfony Filesystem Component
symfony/finder v4.4.16 v5.1.8 Symfony Finder Component
symfony/flex v1.9.10 v1.10.0 Composer plugin for Symfony
symfony/form v4.4.16 v5.1.8 Symfony Form Component
symfony/framework-bundle v4.4.16 v5.1.8 Symfony FrameworkBundle
symfony/http-client-contracts v2.3.1 v2.3.1 Generic abstractions related to HTTP clients
symfony/http-foundation v4.4.16 v5.1.8 Symfony HttpFoundation Component
symfony/http-kernel v4.4.16 v5.1.8 Symfony HttpKernel Component
symfony/inflector v4.4.16 v5.1.8 Symfony Inflector Component
symfony/intl v4.4.16 v5.1.8 A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer v4.4.16 v5.1.8 Symfony Mailer Component
symfony/maker-bundle v1.22.0 v1.23.0 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
symfony/mime v4.4.16 v5.1.8 A library to manipulate MIME messages
symfony/monolog-bridge v4.4.15 v5.1.8 Symfony Monolog Bridge
symfony/monolog-bundle v3.6.0 v3.6.0 Symfony MonologBundle
symfony/options-resolver v4.4.16 v5.1.8 Symfony OptionsResolver Component
symfony/polyfill-intl-icu v1.20.0 v1.20.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.20.0 v1.20.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.20.0 v1.20.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.20.0 v1.20.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.20.0 v1.20.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.20.0 v1.20.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.20.0 v1.20.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/property-access v4.4.16 v5.1.8 Symfony PropertyAccess Component
symfony/routing v4.4.16 v5.1.8 Symfony Routing Component
symfony/security-bundle v4.4.16 v5.1.8 Symfony SecurityBundle
symfony/security-core v4.4.16 v5.1.8 Symfony Security Component - Core Library
symfony/security-csrf v4.4.16 v5.1.8 Symfony Security Component - CSRF Library
symfony/security-guard v4.4.16 v5.1.8 Symfony Security Component - Guard
symfony/security-http v4.4.16 v5.1.8 Symfony Security Component - HTTP Integration
symfony/service-contracts v2.2.0 v2.2.0 Generic abstractions related to writing services
symfony/stopwatch v4.4.15 v5.1.8 Symfony Stopwatch Component
symfony/translation v4.4.16 v5.1.8 Symfony Translation Component
symfony/translation-contracts v2.3.0 v2.3.0 Generic abstractions related to translation
symfony/twig-bridge v4.4.16 v5.1.8 Symfony Twig Bridge
symfony/twig-bundle v4.4.16 v5.1.8 Symfony TwigBundle
symfony/validator v4.4.16 v5.1.8 Symfony Validator Component
symfony/var-dumper v4.4.16 v5.1.8 Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter v4.4.16 v5.1.8 A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/yaml v4.4.15 v5.1.8 Symfony Yaml Component
twig/extra-bundle v3.1.0 v3.1.1 A Symfony bundle for extra Twig extensions
twig/twig v3.1.1 v3.1.1 Twig, the flexible, fast, and secure template language for PHP
webimpress/safe-writer 2.1.0 2.1.0 Tool to write files safely, to avoid race conditions
willdurand/jsonp-callback-validator v1.1.0 v1.1.0 JSONP callback validator.
willdurand/negotiation v2.3.1 v2.3.1 Content Negotiation tools for PHP provided as a standalone library.
PHP 7.4.12 (cli) (built: Oct 29 2020 22:49:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies
with Xdebug v2.9.8, Copyright (c) 2002-2020, by Derick Rethans
I'm adding Group
support to my project.
But after adding/configuring the Group
Entity as below
namespace App\Entity\User;
use Doctrine\ORM\Mapping as ORM;
use Nucleos\UserBundle\Model\Group as BaseGroup;
/**
* @ORM\Entity
* @ORM\Table(name="groups")
*/
class Group extends BaseGroup
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
}
I get the below error
Cannot autowire service "App\Entity\User\Group": argument "$name" of method "Nucleos\UserBundle\Model\Group::__construct()" is type-hinted "string", you should configure its value explicitly.
Here is the package configuration as well
nucleos_user:
db_driver: orm
firewall_name: main
from_email: '%env(MAIL_SENDER)%'
user_class: 'App\Entity\User\User'
group:
group_class: App\Entity\User\Group
nucleos/user-bundle
setup.I would expect to work as pointed out in the docs.
Am I configuring it in a wrong way ?
Thanks !
In my data model there is system dictionary of roles. User entity is associated with roles in n-n way. How may I override array field from Bundle as association in my code?
Set a db_driver
:
nucleos_user:
db_driver: orm
Try to persist a user with an existing username.
Validation error
Doctrine error
linux
composer/package-versions-deprecated 1.11.99.1 1.11.99.1 Composer plugin that provides efficien...
doctrine/annotations 1.11.1 1.11.1 Docblock Annotations Parser
doctrine/cache 1.10.2 1.10.2 PHP Doctrine Cache library is a popula...
doctrine/collections 1.6.7 1.6.7 PHP Doctrine Collections library that ...
doctrine/common 3.1.0 3.1.0 PHP Doctrine Common project is a libra...
doctrine/dbal 2.12.1 3.0.0 Powerful PHP database abstraction laye...
doctrine/doctrine-bundle 2.2.2 2.2.2 Symfony DoctrineBundle
doctrine/event-manager 1.1.1 1.1.1 The Doctrine Event Manager is a simple...
doctrine/inflector 2.0.3 2.0.3 PHP Doctrine Inflector is a small libr...
doctrine/instantiator 1.4.0 1.4.0 A small, lightweight utility to instan...
doctrine/lexer 1.2.1 1.2.1 PHP Doctrine Lexer parser library that...
doctrine/orm 2.8.1 2.8.1 Object-Relational-Mapper for PHP
doctrine/persistence 2.1.0 2.1.0 The Doctrine Persistence project is a ...
doctrine/sql-formatter 1.1.1 1.1.1 a PHP SQL highlighting library
dompdf/dompdf v1.0.2 v1.0.2 DOMPDF is a CSS 2.1 compliant HTML to ...
egulias/email-validator 2.1.25 3.0.0 A library for validating emails agains...
incenteev/composer-parameter-handler v2.1.4 v2.1.4 Composer script handling your ignored ...
jms/metadata 2.4.0 2.4.0 Class/method/property metadata managem...
mbence/opentbs-bundle dev-master 6e6be4b dev-master 6e6be4b OpenTBS Bundle for Symfony - create Op...
monolog/monolog 2.2.0 2.2.0 Sends your logs to files, sockets, inb...
nucleos/dompdf-bundle dev-main e48eb6e dev-main e48eb6e This bundle provides a wrapper for usi...
nucleos/user-bundle 1.6.1 1.6.1 Lightweight user management for symfony
paragonie/random_compat v9.99.100 v9.99.100 PHP 5.x polyfill for random_bytes() an...
phenx/php-font-lib 0.5.2 0.5.2 A library to read, parse, export and m...
phenx/php-svg-lib v0.3.3 v0.3.3 A library to read, parse and export to...
psr/cache 1.0.1 1.0.1 Common interface for caching libraries
psr/container 1.0.0 1.0.0 Common Container Interface (PHP FIG PS...
psr/event-dispatcher 1.0.0 1.0.0 Standard interfaces for event handling.
psr/link 1.0.0 1.0.0 Common interfaces for HTTP links
psr/log 1.1.3 1.1.3 Common interface for logging libraries
sabberworm/php-css-parser 8.3.1 8.3.1 Parser for CSS Files written in PHP
sensio/framework-extra-bundle v5.6.1 v5.6.1 This bundle provides a way to configur...
stfalcon/tinymce-bundle v3.0.1 v3.0.1 This Bundle integrates TinyMCE WYSIWYG...
swiftmailer/swiftmailer v6.2.5 v6.2.5 Swiftmailer, free feature-rich PHP mailer
symfony/contracts v2.3.1 v2.3.1 A set of abstractions extracted out of...
symfony/monolog-bundle v3.6.0 v3.6.0 Symfony MonologBundle
symfony/phpunit-bridge v4.4.18 v5.2.1 Symfony PHPUnit Bridge
symfony/polyfill-ctype v1.22.0 v1.22.0 Symfony polyfill for ctype functions
symfony/polyfill-iconv v1.22.0 v1.22.0 Symfony polyfill for the Iconv extension
symfony/polyfill-intl-grapheme v1.22.0 v1.22.0 Symfony polyfill for intl's grapheme_*...
symfony/polyfill-intl-icu v1.22.0 v1.22.0 Symfony polyfill for intl's ICU-relate...
symfony/polyfill-intl-idn v1.22.0 v1.22.0 Symfony polyfill for intl's idn_to_asc...
symfony/polyfill-intl-normalizer v1.22.0 v1.22.0 Symfony polyfill for intl's Normalizer...
symfony/polyfill-mbstring v1.22.0 v1.22.0 Symfony polyfill for the Mbstring exte...
symfony/polyfill-php72 v1.22.0 v1.22.0 Symfony polyfill backporting some PHP ...
symfony/polyfill-php73 v1.22.0 v1.22.0 Symfony polyfill backporting some PHP ...
symfony/polyfill-php80 v1.22.0 v1.22.0 Symfony polyfill backporting some PHP ...
symfony/polyfill-uuid v1.22.0 v1.22.0 Symfony polyfill for uuid functions
symfony/swiftmailer-bundle v3.5.1 v3.5.1 Symfony SwiftmailerBundle
symfony/symfony v5.2.1 v5.2.1 The Symfony PHP framework
twig/intl-extra v3.2.1 v3.2.1 A Twig extension for Intl
twig/twig v3.2.1 v3.2.1 Twig, the flexible, fast, and secure t...
vich/uploader-bundle 1.16.0 1.16.0 Ease file uploads attached to entities
$ php -v
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
After upgrading to symfony 5.2 from 4.4, login stopped working.
I had another fresh project that started on symfony5 and tried adding nucleosuserbundle there but ran into the same problem.
Add bundle to symfony5.2
login with correct credentials gets logged in
login with correct credetentials gets redirected to login form
In security.yml, under firewalls.main.form_login
comment out csrf_token_generator: security.csrf.token_manager
##Error, from Log messages
Authentication request failed.
Hide context Show trace
[▼
"exception" => Symfony\Component\Security\Core\Exception\InvalidCsrfTokenException {#92 ▼
-token: null
#message: "Invalid CSRF token."
#code: 0
#file: "/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php"
#line: 76
trace: {▼
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/UsernamePasswordFormAuthenticationListener.php:76 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php:132 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/WrappedLazyListener.php:49 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/AbstractListener.php:26 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Bundle/SecurityBundle/Debug/TraceableFirewallListener.php:62 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall.php:86 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:117 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:230 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:59 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:151 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:133 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:79 {▶}
/home/a/www/symfony/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:195 {▶}
/home/a/www/symfony/web/app_dev.php:45 {▶}
Hi,
Sorry but after updated with bugfix in #182 is not working for me.
I debugged and in LoginfFormType:75 there aren't errors in $error = $request->attributes->get(Security::AUTHENTICATION_ERROR);
and neither in $error = $request->getSession()->get(Security::AUTHENTICATION_ERROR);
Thank you!
Adding the SubmitType
to the forms caused some troubles when extending the form in an other context, e.g. using custom labels / class styles. The buttons should be moved to the action.
Docs for 2.x are incomplete and not explanatory. It looks like there is no way to extend profile form type because there is missing configuration options or at least I don't know how to do this without proper docs. Thanks
Add a generic extension point to allow account deletion.
SF 4.4
"nucleos/user-bundle": "", (1.8)
"nucleos/profile-bundle": "", (1.4)
PHP 7.4
Extending RequestPasswordFormType occures error while accessing to email property
Extends form using getParent() :
public function getParent()
{
return RequestPasswordFormType::class;
}
Form printed like FOSUserbundle did.
Neither the property "email" nor one of the methods "email()", "getemail()"/"isemail()"/"hasemail()" or "__call()" exist and have public access in class "Symfony\Component\Form\FormView".
When using wrong credentials (username or password), the error missing is not translated.
The user gets an error message for the current locale.
The message is Bad credentials.
Add a short migration guide.
Add validators for simple password constraints, e.g.
/**
* @PasswordAssert\Charset(
* minLower = 1,
* minUpper = 1,
* minNumeric = 1,
* minSpecial = 1,
* )
*/
protected $plainPassword;
With MongoDB ODM and default Installation from documentation on 'Step 7':
php bin/console doctrine:mongodb:schema:create --index
make response
The field 'safe' is not valid for an index specification. Specification: { key: { usernameCanonical: 1 }, safe: true, unique: true, background: false, ns: "DATABASE.User", name: "usernameCanonical_1" }
Hello,
I'm using nucleos user bundle and profile bundle with confirmation email configured and after user registration, the user is loggin automatically having enabled settted to 0.
Is this behavior normal ?
Thank you
nucleos/user-bundle 1.11.0
7.4.12
Using the plainPassword
pattern validator described at 1.10.x/security.html#password-restrictions breaks changing password with different new passwords.
/change-password
A validation error; passwords are not the same
A fatal error;
Expected argument of type "string", "null" given
File: vendor/nucleos/user-bundle/src/Validator/Constraints/PatternValidator.php
Line: 29
I believe the reason is that as the form RepeaterType
has different values the ChangePassword
form model value is not set (so is null) and the then executed PatternValidator
expects a string value.
Changing the PatternValidator
to return instead of throwing an exception when the value is null solves the issue; though I am unsure if this is the correct solution.
Follow symfony best practice: https://symfony.com/doc/current/best_practices.html#use-the-xliff-format-for-your-translation-files
Hello,
I got this error using the bundle with MongoDB.
Argument 1 passed to Nucleos\UserBundle\Doctrine\UserListener::preUpdate() must be an instance of Doctrine\ORM\Event\LifecycleEventArgs, instance of Doctrine\ODM\MongoDB\Event\PreUpdateEventArgs given
I have this dependencies versions:
doctrine/common: 2.13.3
doctrine/mongodb-odm: 2.0.6
doctrine/mongodb-odm-bundle: 4.2.2
nucleos/user-bundle: 1.5.0
May be to resolve the problem Nucleos\UserBundle\Doctrine\UserListener::preUpdate() must be an instance of Doctrine\Persistence\Event\LifecycleEventArgs and not of Doctrine\ORM\Event\LifecycleEventArgs ??
Thank you!
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
composer.json
php ^8.1
doctrine/collections ^1.8 || ^2.0
doctrine/common ^3.0
doctrine/event-manager ^1.2 || ^2.0
doctrine/persistence ^2.3 || ^3.0
paragonie/random_compat ^1 || ^2 || ^9
symfony/config ^6.4 || ^7.0
symfony/console ^6.4 || ^7.0
symfony/dependency-injection ^6.4 || ^7.0
symfony/event-dispatcher ^6.4 || ^7.0
symfony/event-dispatcher-contracts ^2.5 || ^3.0
symfony/form ^6.4 || ^7.0
symfony/framework-bundle ^6.4 || ^7.0
symfony/http-foundation ^6.4 || ^7.0
symfony/http-kernel ^6.4 || ^7.0
symfony/mailer ^6.4 || ^7.0
symfony/mime ^6.4 || ^7.0
symfony/options-resolver ^6.4 || ^7.0
symfony/password-hasher ^6.4 || ^7.0
symfony/polyfill-mbstring ^1.13
symfony/routing ^6.4 || ^7.0
symfony/security-bundle ^6.4 || ^7.0
symfony/security-core ^6.4 || ^7.0
symfony/security-csrf ^6.4 || ^7.0
symfony/security-http ^6.4 || ^7.0
symfony/translation ^6.4 || ^7.0
symfony/translation-contracts ^2.5 || ^3.0
symfony/twig-bridge ^6.4 || ^7.0
symfony/twig-bundle ^6.4 || ^7.0
symfony/validator ^6.4 || ^7.0
twig/twig ^2.14 || ^3.1
doctrine/doctrine-bundle ^2.4
doctrine/mongodb-odm ^2.3
doctrine/mongodb-odm-bundle ^4.4 || ^5.0
doctrine/orm ^2.18 || ^3.0
ergebnis/composer-normalize ^2.0.1
symfony/browser-kit ^6.4 || ^7.0
symfony/doctrine-bridge ^6.4 || ^7.0
symfony/yaml ^6.4 || ^7.0
vendor-bin/tools/composer.json
friendsofphp/php-cs-fixer ^3.16
maglnet/composer-require-checker ^4.6
matthiasnoback/symfony-dependency-injection-test ^5.0
phpmd/phpmd ^2.13
phpstan/extension-installer ^1.3
phpstan/phpstan ^1.10.14
phpstan/phpstan-doctrine ^1.3.37
phpstan/phpstan-phpunit ^1.3.11
phpstan/phpstan-strict-rules ^1.5.1
phpstan/phpstan-symfony ^1.3.1
phpunit/phpunit ^10.1.2
psalm/plugin-phpunit ^0.18.4
psalm/plugin-symfony ^5.0.3
symfony/phpunit-bridge ^7.0
vimeo/psalm ^5.9
.github/workflows/automatic-release.yml
.github/workflows/continuous-integration.yml
.github/workflows/documentation.yml
docs/requirements.txt
Pygments ==2.17.2
sphinx ==6.2.1
sphinx_rtd_theme ==2.0.0
I'm migrating from FOSUser, but when I go to login, I'm getting invalid password. It's a very old database, I imagine the issue is related to the security that's used hashing the passwords.
Since I'm using Symfony 6, I need a password hasher in security, I took a stab at this. How do I bypass this and use that Nucleos password hashing, which I assume will work with an old FOS User table.
Thanks
# security.yaml
password_hashers:
# FOS\UserBundle\Entity\User:
App\Entity\User:
algorithm: sha512
encode_as_base64: false
iterations: 1
# App\Entity\User: plaintext
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
nucleos_userbundle:
id: nucleos_user.user_provider.username
The user should be able to change the e-mail address.
This should be done with a multi step process:
Hey,
My user table has some extra fields that are required and I take care of this when I'm creating a user using a GUI, but when I setup the project (locally or in a sandbox) I run the nucleos:user:create
to create a super admin, but since I can't pass other parameters I get some errors in other parts of the code.
I've thought about decorating the service command but this doesn't seem viable as execute
is a protected method so there is no way for me to add anything on top of that (I think).
Using a compiler pass seems to not work because the CreateUserCommand
class is final so if I were to replace it with a command that extended CreateUserCommand
I would not be able to override execute
.
So is there a way for you guys to add something that would allow me to add parameters or just a way to extend this command?
Currently all buttons are hardcoded inside the twig templates. This can break the layout if you change the (global) form theme.
MacOS 10.15.7, nginx 1.19.3, php 7.4.10, mariadb 10.5.6
$ composer show --latest
Restricting packages listed in "symfony/symfony" to "5.1.*"
composer/package-versions-deprecated 1.11.99 1.11.99 Composer plugin that provides efficient querying for installed package versions (no...
doctrine/annotations 1.10.4 1.10.4 Docblock Annotations Parser
doctrine/cache 1.10.2 1.10.2 PHP Doctrine Cache library is a popular cache implementation that supports many dif...
doctrine/collections 1.6.7 1.6.7 PHP Doctrine Collections library that adds additional functionality on top of PHP a...
doctrine/common 3.0.2 3.0.2 PHP Doctrine Common project is a library that provides additional functionality tha...
doctrine/dbal 2.11.1 2.11.1 Powerful PHP database abstraction layer (DBAL) with many features for database sche...
doctrine/doctrine-bundle 2.1.2 2.1.2 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.0.1 3.0.1 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.1 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used w...
doctrine/inflector 1.4.3 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations wit...
doctrine/instantiator 1.3.1 1.3.1 A small, lightweight utility to instantiate objects in PHP without invoking their c...
doctrine/lexer 1.2.1 1.2.1 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent P...
doctrine/migrations 3.0.1 3.0.1 PHP Doctrine Migrations project offer additional functionality on top of the databa...
doctrine/orm 2.7.4 2.7.4 Object-Relational-Mapper for PHP
doctrine/persistence 2.0.0 2.0.0 The Doctrine Persistence project is a set of shared interfaces and functionality th...
doctrine/reflection 1.2.1 1.2.1 The Doctrine Reflection project is a simple library used by the various Doctrine pr...
doctrine/sql-formatter 1.1.1 1.1.1 a PHP SQL highlighting library
friendsofsymfony/rest-bundle 3.0.3 3.0.3 This Bundle provides various tools to rapidly develop RESTful API's with Symfony
laminas/laminas-code 3.4.1 3.4.1 Extensions to the PHP Reflection API, static code scanning, and code generation
laminas/laminas-eventmanager 3.3.0 3.3.0 Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge 1.1.1 1.1.1 Alias legacy ZF class names to Laminas Project equivalents.
ocramius/proxy-manager 2.8.0 2.8.1 A library providing utilities to generate, instantiate and generally operate with O...
phpdocumentor/reflection-common 2.2.0 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.2.2 5.2.2 With this component, a library can provide support for annotations via DocBlocks or...
phpdocumentor/type-resolver 1.4.0 1.4.0 A PSR-5 based resolver of Class names, Types and Structural Element Names
psr/cache 1.0.1 1.0.1 Common interface for caching libraries
psr/container 1.0.0 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 1.0.0 Standard interfaces for event handling.
psr/log 1.1.3 1.1.3 Common interface for logging libraries
symfony/cache v5.1.7 v5.1.7 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts v2.2.0 v2.2.0 Generic abstractions related to caching
symfony/config v5.1.7 v5.1.7 Symfony Config Component
symfony/console v5.1.7 v5.1.7 Symfony Console Component
symfony/dependency-injection v5.1.7 v5.1.7 Symfony DependencyInjection Component
symfony/deprecation-contracts v2.2.0 v2.2.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge v5.1.7 v5.1.7 Symfony Doctrine Bridge
symfony/dotenv v5.1.7 v5.1.7 Registers environment variables from a .env file
symfony/error-handler v5.1.7 v5.1.7 Symfony ErrorHandler Component
symfony/event-dispatcher v5.1.7 v5.1.7 Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v2.2.0 v2.2.0 Generic abstractions related to dispatching event
symfony/filesystem v5.1.7 v5.1.7 Symfony Filesystem Component
symfony/finder v5.1.7 v5.1.7 Symfony Finder Component
symfony/flex v1.9.6 v1.9.6 Composer plugin for Symfony
symfony/framework-bundle v5.1.7 v5.1.7 Symfony FrameworkBundle
symfony/http-client-contracts v2.2.0 v2.2.0 Generic abstractions related to HTTP clients
symfony/http-foundation v5.1.7 v5.1.7 Symfony HttpFoundation Component
symfony/http-kernel v5.1.7 v5.1.7 Symfony HttpKernel Component
symfony/polyfill-intl-grapheme v1.18.1 v1.18.1 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-normalizer v1.18.1 v1.18.1 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.18.1 v1.18.1 Symfony polyfill for the Mbstring extension
symfony/polyfill-php73 v1.18.1 v1.18.1 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.18.1 v1.18.1 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/property-access v5.1.7 v5.1.7 Symfony PropertyAccess Component
symfony/property-info v5.1.7 v5.1.7 Symfony Property Info Component
symfony/routing v5.1.7 v5.1.7 Symfony Routing Component
symfony/security-core v5.1.7 v5.1.7 Symfony Security Component - Core Library
symfony/serializer v5.1.7 v5.1.7 Symfony Serializer Component
symfony/service-contracts v2.2.0 v2.2.0 Generic abstractions related to writing services
symfony/stopwatch v5.1.7 v5.1.7 Symfony Stopwatch Component
symfony/string v5.1.7 v5.1.7 Symfony String component
symfony/translation-contracts v2.3.0 v2.3.0 Generic abstractions related to translation
symfony/twig-bridge v5.1.7 v5.1.7 Symfony Twig Bridge
symfony/twig-bundle v5.1.7 v5.1.7 Symfony TwigBundle
symfony/var-dumper v5.1.7 v5.1.7 Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter v5.1.7 v5.1.7 A blend of var_export() + serialize() to turn any serializable data structure to pl...
symfony/web-profiler-bundle v5.1.7 v5.1.7 Symfony WebProfilerBundle
symfony/yaml v5.1.7 v5.1.7 Symfony Yaml Component
twig/twig v3.0.5 v3.0.5 Twig, the flexible, fast, and secure template language for PHP
webimpress/safe-writer 2.1.0 2.1.0 Tool to write files safely, to avoid race conditions
webmozart/assert 1.9.1 1.9.1 Assertions to validate method input/output with nice error messages.
willdurand/jsonp-callback-validator v1.1.0 v1.1.0 JSONP callback validator.
willdurand/negotiation v2.3.1 v2.3.1 Content Negotiation tools for PHP provided as a standalone library.
$ php -v
PHP 7.4.11 (cli) (built: Oct 1 2020 23:30:54) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.11, Copyright (c), by Zend Technologies
composer require nucleos/user-bundle
Using version ^1.4 for nucleos/user-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.1.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for nucleos/user-bundle ^1.4 -> satisfiable by nucleos/user-bundle[1.4.0].
- Conclusion: remove doctrine/common 3.0.2
- Conclusion: don't install doctrine/common 3.0.2
- nucleos/user-bundle 1.4.0 requires doctrine/common ^2.11 -> satisfiable by doctrine/common[2.12.0, 2.13.0, 2.13.1, 2.13.2, 2.13.3, v2.11.0].
- Can only install one of: doctrine/common[2.12.0, 3.0.2].
- Can only install one of: doctrine/common[2.13.0, 3.0.2].
- Can only install one of: doctrine/common[2.13.1, 3.0.2].
- Can only install one of: doctrine/common[2.13.2, 3.0.2].
- Can only install one of: doctrine/common[2.13.3, 3.0.2].
- Can only install one of: doctrine/common[v2.11.0, 3.0.2].
- Installation request for doctrine/common (locked at 3.0.2) -> satisfiable by doctrine/common[3.0.2].
Installation failed, reverting ./composer.json to its original content.
Hello,
how to override template login?
Symfony 4.4
PHP 7.4.3
Create sonata admin for user model. Try to create user.
Empty form should be displayed
DomainException:
Email cannot be null
at vendor/nucleos/user-bundle/src/Model/User.php:207
at Nucleos\UserBundle\Model\User->getEmail()
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:393)
at Symfony\Component\PropertyAccess\PropertyAccessor->readProperty()
(vendor/symfony/symfony/src/Symfony/Component/PropertyAccess/PropertyAccessor.php:93)
at Symfony\Component\PropertyAccess\PropertyAccessor->getValue()
(vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:97)
at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->getPropertyValue()
(vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:51)
at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms()
(vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:378)
at Symfony\Component\Form\Form->setData()
(vendor/sonata-project/admin-bundle/src/Controller/CRUDController.php:573)
at Sonata\AdminBundle\Controller\CRUDController->createAction()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:158)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:80)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:201)
at Symfony\Component\HttpKernel\Kernel->handle()
Add documentation how to use https://github.com/scheb/two-factor-bundle
There's a typo in the security.xml Routing file.
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
[...]
<route id="nucleos_user_security_logout" path="/logout" methods="GET POST">
<default key="_controller">nNucleos\UserBundle\Action\LogoutAction</default>
</route>
</routes>
should be
<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="http://symfony.com/schema/routing" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">
[...]
<route id="nucleos_user_security_logout" path="/logout" methods="GET POST">
<default key="_controller">Nucleos\UserBundle\Action\LogoutAction</default>
</route>
</routes>
Hello,
I just switched from FosUser to NucleosUser on one of my projects. I also use api-platform.
I am having a problem with the uri user in my responses. As you can see in the screenshot below, every time I have a relationship with a user, it returns me a path /api/users/{id}/reset_password instead of /api/users/{id}.
Do you have any idea what could be causing this problem?
Thank you
Reduce interface or move it to the profile bundle.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.