Skip to content

sfCoreAutoload::make() doesn't work  #378

Open
@JohannesTyra

Description

@JohannesTyra

Hey Team,
the sfCoreAutoload::make() doesn't work.

https://github.com/FriendsOfSymfony1/symfony1/blob/master/lib/autoload/sfCoreAutoload.class.php

The preg_replace needs the "old PHP array syntax":
preg_replace('/protected \$classes = array *\(.*?\);/s',

In the code the new syntax protected $classes = [***] is used - without array.
So the preg_replace fails.


Using

    protected $classes = array(
    'sfaction' => 'action/sfAction.class.php',
    'sfactionstack' => 'action/sfActionStack.class.php',
    'sfactionstackentry' => 'action/sfActionStackEntry.class.php',

fixes it.


Thx for support.

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