title: CakePHP 3 Error generator Plugin : [Cake\Core\Exception\MissingPluginException] Plugin could not be found
body: <p>Link my problem: <a href="https://github.com/cakephp/cakephp/issues/10966" rel="nofollow noreferrer">https://github.com/cakephp/cakephp/issues/10966</a></p>
  
  <h3>What you did</h3>
  
  <p>Created by console plugin example.</p>
  
  <pre><code>.\bin\cake bake plugin EOM/shop
  .\bin\cake bake controller hola -p EOM/shop
  </code></pre>
  
  <p>//change ok bootstrap.php</p>
  
  <pre><code>Plugin::load('EOM/shop', ['bootstrap' =&gt; false, 'routes' =&gt; true]);
  </code></pre>
  
  <p>Router Plugin:</p>
  
  <pre><code>Router::plugin(
      'EOM/shop',
      ['path' =&gt; '/e-o-m/shop'],
      function (RouteBuilder $routes) {
          $routes-&gt;fallbacks(DashedRoute::class);
      }
  );
  </code></pre>
  
  <p>Print: DebugKit</p>
  
  <p><a href="https://i.stack.imgur.com/irWVA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/irWVA.jpg" alt="enter image description here"></a></p>
  
  <p>Print: My Tree folder in Plugins</p>
  
  <p><a href="https://i.stack.imgur.com/HhzfA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HhzfA.jpg" alt="enter image description here"></a></p>
  
  <h3>What happened</h3>
  
  <p>Error in browser: "An Internal Server Error Occurred"</p>
  
  <p>Out file error.log</p>
  
  <pre><code>2017-07-30 21:33:13 Error: [Cake\Core\Exception\MissingPluginException] Plugin EOM/Shop could not be found.
  Exception Attributes: array (
    'plugin' =&gt; 'EOM/Shop',
  )
  Request URL: /e-o-m/shop/hola
  Stack Trace:
  #0 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Core\App.php(190): Cake\Core\Plugin::classPath('EOM/Shop')
  #1 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\View\View.php(1269): Cake\Core\App::path('Template', 'EOM/Shop')
  #2 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\View\View.php(1087): Cake\View\View-&gt;_paths('EOM/Shop')
  #3 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\View\View.php(592): Cake\View\View-&gt;_getViewFileName('Error\\error500')
  #4 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(364): Cake\View\View-&gt;render('error500', 'error')
  #5 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(341): Cake\Error\ExceptionRenderer-&gt;_outputMessageSafe('error500')
  #6 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Error\ExceptionRenderer.php(200): Cake\Error\ExceptionRenderer-&gt;_outputMessage('missingControll...')
  #7 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Error\Middleware\ErrorHandlerMiddleware.php(110): Cake\Error\ExceptionRenderer-&gt;render()
  #8 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Error\Middleware\ErrorHandlerMiddleware.php(94): Cake\Error\Middleware\ErrorHandlerMiddleware-&gt;handleException(Object(Cake\Routing\Exception\MissingControllerException), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
  #9 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Http\Runner.php(65): Cake\Error\Middleware\ErrorHandlerMiddleware-&gt;__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response), Object(Cake\Http\Runner))
  #10 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Http\Runner.php(51): Cake\Http\Runner-&gt;__invoke(Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
  #11 D:\www\app.aptitud.local\www\vendor\cakephp\cakephp\src\Http\Server.php(80): Cake\Http\Runner-&gt;run(Object(Cake\Http\MiddlewareQueue), Object(Cake\Http\ServerRequest), Object(Cake\Http\Response))
  #12 D:\www\app.aptitud.local\www\webroot\index.php(37): Cake\Http\Server-&gt;run()
  #13 {main}
  </code></pre>
  
  <h3>What you expected to happen</h3>
  
  <p>Load ok my class my plugin subfolder <strong>/app/plugins/EOM/Shop/</strong> or <strong>/app/plugins/MyCompany/Shop/</strong></p>