title: CakePHP 3 Plugin Routes don't seem to be loading
body: <p>I'm trying to load routes in a plugin  in CakePHP 3.2.  They work fine if I put the routes in the core routes.php file, but not in my plugin routes.php file.</p>
  
  <p>The plugin name is: MFC/HDParser.</p>
  
  <p>The path is: /vendor/mfc/hdparser. (The plugin was originally baked into the plugins directory, but transferred it to the vendors directory (and all the files updated) just in case that was the issue.)</p>
  
  <p>In the core bootstrap file I have:</p>
  
  <pre><code>Plugin::load('MFC/HDParser', ['bootstrap' =&gt; true, 'routes' =&gt; true, 'autoload' =&gt; true]);
  </code></pre>
  
  <p>/vendor/cakephp-plugins contains the line:</p>
  
  <pre><code>'MFC/HDParser' =&gt; $baseDir . '/vendor/mfc/hdparser/'
  </code></pre>
  
  <p>/composer.json contains:</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "App\\": "src",
          "mfc\\hdparser\\": "./vendor/mfc/hdparser/src",
      }
  },
  </code></pre>
  
  <p>My /vendor/mfc/hdparser/config/routes.php contains:</p>
  
  <pre><code>use Cake\Routing\Router;
  
  Router::plugin(
          'MFC/HDParser', ['path' =&gt; '/hdparser'], function ($routes) {
           $routes-&gt;connect('/charactersheet', ['plugin' =&gt; 'MFC/HDParser', 'controller' =&gt; 'Charactersheet', 'action' =&gt; 'index']);
  
  //  $routes-&gt;connect('/:controller');
  //
  //$routes-&gt;resources('Charactersheet');
  //        $routes-&gt;fallbacks('DashedRoute');
  //}
  );
  //Router::connect('/charactersheet', ['plugin' =&gt; 'MFC/HDParser', 'controller' =&gt; 'Charactersheet', 'action' =&gt; 'index']);
  </code></pre>
  
  <p>I've also tried using 'path' => '/mfc/hdparser'</p>
  
  <p>When I try to access site.dev/charactersheet I get "Error: CharactersheetController could not be found."</p>
  
  <p>If I try to use a route like /mfc/hdparser/charactersheet, /MFC/HDParser/charactersheet or /m-f-c..., /m_f_c..., /Mfc..., etc I get a missing controller ('Mfc') error.</p>
  
  <p>If I put the line: </p>
  
  <pre><code>Router::connect('/charactersheet', ['plugin' =&gt; 'MFC/HDParser', 'controller' =&gt; 'Charactersheet', 'action' =&gt; 'index']);
  </code></pre>
  
  <p>in the core routes.php file (outside the scope, before Plugins:load(); or inside the scope using $routes->connect() ) it works fine.</p>
  
  <p>I've tried inflecting just about everything using underscores, dashes and camelcase.</p>
  
  <p>I've dug through the documentation (<a href="http://book.cakephp.org/3.0/en/plugins.html" rel="nofollow">http://book.cakephp.org/3.0/en/plugins.html</a>, <a href="http://book.cakephp.org/3.0/en/development/routing.html" rel="nofollow">http://book.cakephp.org/3.0/en/development/routing.html</a>, <a href="http://api.cakephp.org/3.2/class-Cake.Routing.Router.html" rel="nofollow">http://api.cakephp.org/3.2/class-Cake.Routing.Router.html</a>) and tried everything I could find there (and here), as well as using the CakeDC/Users plugin as a template, but I'm still missing something...</p>
  
  <p>--MFC</p>