Symfony 4.0.0-BETA2 released

Symfony 4.0.0-BETA2 has just been released. Here is a list of the most important changes:

  • bug #24728 [BridgeTwig] fix bootstrap checkbox_row to render properly & remove spaceless (@arkste)
  • bug #24709 [HttpKernel] Move services reset to Kernel::handle()+boot() (@nicolas-grekas)
  • bug #24703 [TwigBridge] Bootstrap 4 form theme fixes (@vudaltsov)
  • bug #24744 debug:container --types: Fix bug with non-existent classes (@weaverryan)
  • bug #24747 [VarDumper] HtmlDumper: fix collapsing nodes with depth < maxDepth (@ogizanagi)
  • bug #24743 [FrameworkBundle] Do not activate the cache if Doctrine's cache is not present (@sroze)
  • bug #24605 [FrameworkBundle] Do not load property_access.xml if the component isn't installed (@ogizanagi)
  • bug #24710 [TwigBridge] Fix template paths in profiler (@ro0NL)
  • bug #24706 [DependencyInjection] Add the possibility to disable assets via xml (@renatomefi)
  • bug #24696 Ensure DeprecationErrorHandler::collectDeprecations() is triggered (@alexpott)
  • bug #24711 [TwigBridge] Re-add Bootstrap 3 Checkbox Layout (@arkste)
  • bug #24713 [FrameworkBundle] fix CachePoolPrunerPass to use correct command service id (@kbond)
  • bug #24686 Fix $_ENV/$_SERVER precedence in test framework (@fabpot)
  • bug #24691 [HttpFoundation] Fix caching of session-enabled pages (@nicolas-grekas)
  • feature #24677 [HttpFoundation] Allow DateTimeImmutable in Response setters (@derrabus)
  • bug #24694 [Intl] Allow passing null as a locale fallback (@jakzal)
  • bug #24606 [HttpFoundation] Fix FileBag issue with associative arrays (@enumag)
  • bug #24673 [DI] Throw when a service name or an alias contains dynamic values (prevent an infinite loop) (@dunglas)
  • bug #24684 [Security] remove invalid deprecation notice on AbstractGuardAuthenticator::supports() (@kbond)
  • bug #24681 Fix isolated error handling (@alexpott)
  • bug #24575 Ensure that PHPUnit's error handler is still working in isolated tests (@alexpott)
  • bug #24597 [PhpUnitBridge] fix deprecation triggering test detection (@xabbuh)
  • feature #24671 [DI] Handle container.autowiring.strict_mode to opt-out from legacy autowiring (@nicolas-grekas)
  • bug #24660 Escape trailing in QuestionHelper autocompletion (@kamazee)
  • bug #24624 [Security] Fix missing BC layer for AbstractGuardAuthenticator::getCredentials() (@chalasr)
  • bug #24598 Prefer line formatter on missing cli dumper (@greg0ire)
  • bug #24635 [DI] Register default env var provided types (@ro0NL)
  • bug #24620 [FrameworkBundle][Workflow] Fix deprectation when checking workflow.registry service in dump command (@Jean-Beru)
  • bug #24644 [Security] Fixed auth provider authenticate() cannot return void (@glye)
  • bug #24642 [Routing] Fix resource miss (@dunglas)
  • bug #24608 Adding the Form default theme files to be warmed up in Twig's cache (@weaverryan)
  • bug #24626 streamed response should return $this (@DQNEO)
  • feature #24631 [Form] Fix FormEvents:: constant and value matching (@yceruto, @javiereguiluz)
  • bug #24630 [WebServerBundle] Prevent commands from being registered by convention (@chalasr)
  • bug #24589 Username and password in basic auth are allowed to contain '.' (@Richard Quadling)
  • bug #24566 Fixed unsetting from loosely equal keys OrderedHashMap (@maryo)
  • bug #24570 [Debug] Fix same vendor detection in class loader (@Jean-Beru)
  • bug #24573 Fixed pathinfo calculation for requests starting with a question mark. (@syzygymsu)
  • bug #24565 [Serializer] YamlEncoder: throw if the Yaml component isn't installed (@dunglas)
  • bug #24563 [Serializer] ObjectNormalizer: throw if PropertyAccess isn't installed (@dunglas)
  • bug #24571 [PropertyInfo] Add support for the iterable type (@dunglas)
  • bug #24579 pdo session fix (@mxp100)
  • bug #24536 [Security] Reject remember-me token if UserCheckerInterface::checkPostAuth() fails (@kbond)

Want to upgrade to this new release? Fortunately, because Symfony protects backwards-compatibility very closely, this should be quite easy. Read our upgrade documentation to learn more.

Want to be notified whenever a new Symfony release is published? Or when a version is not maintained anymore? Or only when a security issue is fixed? Consider subscribing to the Symfony Roadmap Notifications.

Comments

I tried forking the symfony to fix a bug but couldn't push the changes. An entity generates the following SQL with the doctrine:schema:update command for mariaDB and yields errors.

CREATE TABLE purchase (id INT AUTO_INCREMENT NOT NULL, requisition LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', purchase_order LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', invoice LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', status SMALLINT NOT NULL, remarks LONGTEXT NOT NULL, UNIQUE INDEX UNIQ_6117D13B15E142BE (requisition), UNIQUE INDEX UNIQ_6117D13B21E210B2 (purchase_order), UNIQUE INDEX UNIQ_6117D13B90651744 (invoice), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB'

The above yields error at:
In AbstractMySQLDriver.php line 115
In PDOConnection.php line 106
In PDOConnection.php line 104

SQLSTATE[42000]: Syntax error or access violation: 1170 BLOB/TEXT column 'requisition' used in key specification without a key length

The correct SQL statement would have been:
CREATE TABLE purchase (id INT AUTO_INCREMENT NOT NULL, requisition LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', purchase_order LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', invoice LONGTEXT NOT NULL COMMENT '(DC2Type:json_array)', status SMALLINT NOT NULL, remarks LONGTEXT NOT NULL, UNIQUE INDEX UNIQ_6117D13B15E142BE (requisition(128)), UNIQUE INDEX UNIQ_6117D13B21E210B2 (purchase_order(128)), UNIQUE INDEX UNIQ_6117D13B90651744 (invoice(128)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB
Awesome ! I hope it will be stable soon so i can use it in one of my projects :)
@Anirban Chakraborty: You'll get better support through one of our support channels: http://symfony.com/support.
Are the connected Bundles also being upgraded by their respective maintainers? e.g. SonataAdminBundle, FosUserBundle, Doctrine, KNP*...

Kindly share, If you have keep an eye on their development or if you know of any resource that will help me keep track.

Best of luck for Symfony 3.4^ & 4.0^ from Pakistan 🇵🇰
@Anirban Chakraborty: MariaDB is not fully supported by Doctrine and the Doctrine Migrations bundle. MySQL 5.7 is a better choice for Symfony Applications ;)
@Mike Are you sure? I'm not using MySQL, but I thought MariaDB was a drop-in replacement for MySQL.
@Fabien No worries. @Mike Get your story straight.

https://mariadb.com/kb/en/library/mariadb-vs-mysql-compatibility/

It seems like Doctrine supports them both, equally! :)
Btw OT. I already love Symfony 4 and Symfony Flex. Tnx for all the hard work!
Login with SensioLabsConnect to post a comment