Skip to content

Call to a member function addResource() on array #23518

Closed
@javiereguiluz

Description

@javiereguiluz
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.4

I'm updating a Symfony application to use Symfony 3.3.4 and Flex 1.0.11. In my app I had this config file which maps old URLs to new URLs:

// app/config/legacy_url_map.php
<?php

return array(
    '/old-url' => '/new-url',
    // ...
);

I tried to move that file to config/routing/legacy_url_map.php but the following confusing error happened:

fatal-error


I guess you can't put arbitrary files inside the new config/routing/ dir ... but the error message should be improved in those cases. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions