title: CakePHP Migration 3.9 to 4.2 Undefined Method Cake\Core\Plugin::load()
body: <p>I'm migrating CakePHP from version 3.9 to 4.2 and I'm seeing the error:</p>
  <pre><code>Exception: Call to undefined method Cake\Core\Plugin::load()
  </code></pre>
  <p>on the following line in <code>config/bootstrap_cli.php</code></p>
  <pre><code>Plugin::load('Bake');
  </code></pre>
  <p>It seems either <code>Core</code> or <code>Plugin</code> is not being imported correctly. Earlier in <code>config/bootstrap_cli.php</code> I have:</p>
  <pre><code>use Cake\Core\Plugin;
  </code></pre>
  <p>Perhaps it isn't being installed correctly? My <code>composer.json</code> contains the following:</p>
  <pre><code>    &quot;require&quot;: {                                                                                        
          &quot;php&quot;: &quot;&gt;=5.4.16&quot;,                                                                              
          &quot;cakephp/cakephp&quot;: &quot;^4.0&quot;,                                                                      
          &quot;mobiledetect/mobiledetectlib&quot;: &quot;2.*&quot;,                                                          
          &quot;cakephp/migrations&quot;: &quot;~3.0&quot;,                                                                   
          &quot;cakephp/plugin-installer&quot;: &quot;^1.0&quot;,                                                             
          &quot;phpunit/phpunit&quot;: &quot;^8.0&quot;,                                                                      
          &quot;cakephp/bake&quot;: &quot;^2.0&quot;,                                                                         
          &quot;cakephp/core&quot;: &quot;^4.0&quot;                                                                          
      },
          &quot;autoload&quot;: {                                                                                       
          &quot;psr-4&quot;: {                                                                                      
              &quot;App\\&quot;: &quot;src&quot;                                                                              
          }                                                                                               
      },                                                                                                  
      &quot;autoload-dev&quot;: {                                                                                   
          &quot;psr-4&quot;: {                                                                                      
              &quot;App\\Test\\&quot;: &quot;tests&quot;,                                                                     
              &quot;Cake\\Test\\&quot;: &quot;./vendor/cakephp/cakephp/tests&quot;                                            
          }                                                                                               
      },                                                                                                  
      &quot;scripts&quot;: {                                                                                        
          &quot;post-install-cmd&quot;: &quot;App\\Console\\Installer::postInstall&quot;,                                     
          &quot;post-autoload-dump&quot;: &quot;Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump&quot;            
      },
  </code></pre>