Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.7 deprecated warnings #6

Merged
merged 3 commits into from
Dec 10, 2018
Merged

Conversation

asaliev
Copy link
Collaborator

@asaliev asaliev commented Dec 10, 2018

Plugin::load() is marked as deprecated in 3.7, use Plugin::getCollection()->add() instead.

@dereuromark
Copy link
Owner

Seems like the tests then fail, do we also need to load the TwigView plugin then maybe?

@asaliev
Copy link
Collaborator Author

asaliev commented Dec 10, 2018

Seems like the tests then fail, do we also need to load the TwigView plugin then maybe?

Looks like bootstrapping logic is a bit different with PluginCollection. We need to manually include ./config/bootstrap.php

@codecov-io
Copy link

codecov-io commented Dec 10, 2018

Codecov Report

Merging #6 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage     77.29%   77.29%           
  Complexity      361      361           
=========================================
  Files            17       17           
  Lines           850      850           
=========================================
  Hits            657      657           
  Misses          193      193

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8169fd6...e4ce35b. Read the comment docs.

@@ -25,6 +25,7 @@
define('CAKE', CORE_PATH . APP_DIR . DS);

require dirname(__DIR__) . '/vendor/autoload.php';
require CONFIG . 'bootstrap.php';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be after the core one maybe? or is the order ok like this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be after the core one maybe? or is the order ok like this?

Let's move it to be safe

@dereuromark dereuromark merged commit 3246c6d into dereuromark:master Dec 10, 2018
@asaliev asaliev deleted the 3.7-compatability branch December 10, 2018 10:11
@@ -43,5 +44,5 @@

Cake\Core\Configure::write('debug', true);

Cake\Core\Plugin::load('CakeDto', ['path' => ROOT . DS, 'autoload' => true, 'bootstrap' => true]);
Cake\Core\Plugin::getCollection()->add(new CakeDto\Plugin());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear: This is also available in 3.6 right?
The tests at least say it is - so all good for BC :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be clear: This is also available in 3.6 right?

Yeah, it's available in 3.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants