8000 Call to a member function addResource() on array · Issue #23518 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
javiereguiluz opened this issue Jul 15, 2017 · 1 comment
Closed

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

javiereguiluz opened this issue Jul 15, 2017 · 1 comment

Comments

@javiereguiluz
Copy link
Member
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!

@fabpot
Copy link
Member
fabpot commented Jul 16, 2017

Closing as this is a doc issue

@fabpot fabpot closed this as completed Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0