Model import gives Error: Class "Symfony\Component\Filesystem\Filesystem" not found
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3305587. -->
Reported by: [marco.b](https://www.drupal.org/user/2371506)
Related to !217
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>After importing some BOMN.IO models via /admin/config/workflow/eca/import, the follwing error occurs:</p>
<p>The website encountered an unexpected error. Please try again later.<br>
Error: Class "Symfony\Component\Filesystem\Filesystem" not found in Drupal\eca_ui\Form\Import->submitForm() (line 365 of modules/contrib/eca/modules/ui/src/Form/Import.php).</p>
<pre>Drupal\eca_ui\Form\Import->submitForm(Array, Object)<br>call_user_func_array(Array, Array) (Line: 114)<br>Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)<br>Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 592)<br>Drupal\Core\Form\FormBuilder->processForm('eca_import', Array, Object) (Line: 320)<br>Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)<br>Drupal\Core\Controller\FormController->getContentResult(Object, Object)<br>call_user_func_array(Array, Array) (Line: 123)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)<br>Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)<br>Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)<br>Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)<br>Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)<br>Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)<br>Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)<br>Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)<br>Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)<br>Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)<br>Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)<br>Drupal\Core\DrupalKernel->handle(Object) (Line: 19)</pre><p>However, imported model was imported and works.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<ol>
<li>Go to <a href="https://ecaguide.org/library/test%20models/views/">https://ecaguide.org/library/test%20models/views/</a> and download the example model or create a dummy model and export this one and delete it (to be able to reimport).</li>
<li>Import the downloaded file via /admin/config/workflow/eca/import</li>
<li>Error occurs</li>
</ol>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue