Changes between Version 42 and Version 43 of members/GRIP-UQAM/Symfony


Ignore:
Timestamp:
Jul 9, 2017, 5:28:33 PM (7 years ago)
Author:
Grip Uqam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • members/GRIP-UQAM/Symfony

    v42 v43  
    55= Versions =
    66== 3.3 ==
     7=== app/autoload.php suppressed ===
     8https://github.com/symfony/symfony-standard/blob/v3.2.11/app/autoload.php
     9* This file has been suppressed! Yeah!
    710=== Dependency Injection ===
    811* //[https://www.tomasvotruba.cz/blog/2017/05/07/how-to-refactor-to-new-dependency-injection-features-in-symfony-3-3/ How to refactor to new Dependency Injection features in Symfony 3.3]// 2017
     
    4952=== Hacking ===
    5053==== {{{autoload.php}}} ====
    51 * https://github.com/symfony/symfony-standard/blob/master/app/autoload.php The original
     54* https://github.com/symfony/symfony-standard/blob/v3.2.11/app/autoload.php The original
     55* ~~https://github.com/symfony/symfony-standard/blob/master/app/autoload.php~~ ~~The original~~ (suppressed in Symfony 3.3!)
    5256* https://github.com/symfony-cmf/standard-edition/blob/master/app/autoload.php Almost the same, maybe slightly older version
    5357* https://github.com/symfony-cmf/cmf-sandbox/blob/master/app/autoload.php Locale component additions and others
     
    132136* //[https://groups.google.com/forum/#!topic/symfony2/H9R1J7sF8Go Fast routing in Symfony (FastRoute library)?]//
    133137===== RouteCollection vs RouteCollectionBuilder =====
     138[[span(''Microkernel part buggy to be rewritten''!, style=background: Tomato)]]
    134139{{{#!th
    135140**[http://api.symfony.com/master/Symfony/Component/Routing/RouteCollection.html RouteCollection]**
     
    317322* DebugBundle (in dev/test env) - Adds Debug and VarDumper component integration
    318323==== Choosing bundles ====
    319 * [https://phppackages.org/p/symfony/framework-bundle/referenced-by PHP packages that reference symfony/framework-bundle]
     324* [[span([https://phppackages.org/p/symfony/framework-bundle/referenced-by PHP packages that reference symfony/framework-bundle], style=background: GreenYellow)]]
    320325===== Bundles not to choose =====
    321 * [https://packagist.org/packages/jms/serializer jms/serializer] (Why is there a bug in it?)
     326* [https://packagist.org/packages/jms/serializer jms/serializer] (Why? They have been a may be dependency problem in an old version, probably no more an issue)
    322327 * [https://jolicode.com/blog/do-not-use-fosuserbundle Do not use FOSUserBundle] (Read on KNP University how to use it with "Guard")
    323328==== Admin:  sonata-project/admin-bundle ====
     
    444449=== Symfony - Kotti ===
    445450* https://github.com/truelab/
     451=== Using friendsofsymfony/user-bundle ===
     452==== FOS\UserBundle\Model\UserInterface ====
     453* [http://php.net/manual/en/class.serializable.php The Serializable interface]
     454===== Symfony\Component\Security\Core\User\UserInterface =====
     455* Represents the interface that all user classes must implement.
     456* Objects that implement this interface are created and loaded by different objects that implement UserProviderInterface
     457* Users are serialized to be saved in the session.
     458* http://api.symfony.com/master/Symfony/Component/Security/Core/User/UserInterface.html
     459* //[https://symfony.com/doc/current/security/custom_provider.html How to Create a custom User Provider]//
     460* //[http://symfony.com/doc/current/security/entity_provider.html How to Load Security Users from the Database (the Entity Provider)]//
     461* //[http://symfony2-document.readthedocs.io/en/latest/cookbook/security/entity_provider.html How to load Security Users from the Database (the Entity Provider)]//
     462
     463interface UserInterface
     464* string getUsername()
     465* (Role|string)[] getRoles()
     466* string getPassword() This should be the encoded password.
     467* eraseCredentials()
     468* string|null getSalt()
     469===== Symfony\Component\Security\Core\User\AdvancedUserInterface =====
     470* Adds extra features to a user class related to account status flags.
     471* http://api.symfony.com/master/Symfony/Component/Security/Core/User/AdvancedUserInterface.html
     472* //[http://symfony.com/doc/current/security/entity_provider.html#security-advanced-user-interface Forbid Inactive Users (AdvancedUserInterface)]//
     473
     474interface AdvancedUserInterface implements UserInterface
     475* bool isAccountNonExpired()
     476* bool isAccountNonLocked()
     477* bool isCredentialsNonExpired()
     478* bool isEnabled()
     479===== FOS\UserBundle\Model\UserInterface =====
     480{{{#!sh
     481interface UserInterface extends AdvancedUserInterface, \Serializable
     482
     483const ROLE_DEFAULT = 'ROLE_USER';
     484const ROLE_SUPER_ADMIN = 'ROLE_SUPER_ADMIN';
     485
     486mixed             getId()
     487
     488# string          getUsername()
     489self              setUsername(string $username)
     490self              setUsernameCanonical(string $usernameCanonical)
     491string            getUsernameCanonical()
     492
     493# (Role|string)[] getRoles()
     494self              setRoles(array $roles)
     495self              function addRole(string $role)
     496self              removeRole(string $role)
     497bool              hasRole(string $role) # Never use this, instead: $authorizationChecker->isGranted('ROLE_USER')
     498
     499self              setSuperAdmin(bool $superAdmin)
     500bool              isSuperAdmin()
     501
     502# string          getPassword()
     503self              setPassword(string $password) # also hashed
     504#                 eraseCredentials()
     505self              setPlainPassword(string $password)
     506string            getPlainPassword() # !! 2017-07
     507# string|null     getSalt()
     508                  setSalt(string|null $salt)
     509self              setPasswordRequestedAt(DateTime $date = null)
     510int               isPasswordRequestNonExpired(int $ttl) # seconds
     511self              setConfirmationToken(string $confirmationToken)
     512string            getConfirmationToken()
     513# bool            isCredentialsNonExpired()
     514
     515self              setEmail(string $email)
     516string            getEmail()
     517self              setEmailCanonical(string $emailCanonical)
     518string            getEmailCanonical()
     519
     520# bool            isAccountNonExpired()
     521# bool            isAccountNonLocked()
     522# bool            isEnabled()
     523self              setEnabled(bool $enabled)
     524
     525self              setLastLogin(DateTime $time = null)
     526}}}