Skip to content

Conversation

@mhsdesign
Copy link
Member

flow flow:core:compile

Exception [0] in line 666 ReflectionService.php: Method Neos\Demo\Components\Headline\HeadlineType::__construct() does not exist

22 ReflectionMethod::__construct("Neos\Demo\Components\Headline\HeadlineType", "__construct")
21 Neos\Flow\Reflection\ReflectionService::getMethodAnnotations("Neos\Demo\Components\Headline\HeadlineType", "__construct", "Neos\Flow\Annotations\Autowiring")
20 Neos\Flow\Reflection\ReflectionService::getMethodAnnotation("Neos\Demo\Components\Headline\HeadlineType", "__construct", "Neos\Flow\Annotations\Autowiring")
19 Neos\Flow\ObjectManagement\Configuration\ConfigurationBuilder::autowireArguments(array|1681|)
18 Neos\Flow\ObjectManagement\Configuration\ConfigurationBuilder::buildObjectConfigurations(array|28|, array|32|)
17 Neos\Flow\ObjectManagement\CompileTimeObjectManager::initialize(array|165|)
16 Neos\Flow\Core\Booting\Scripts::initializeObjectManagerCompileTimeFinalize(Neos\Flow\Core\Bootstrap)
15 call_user_func(array|2|, Neos\Flow\Core\Bootstrap)

Adding the enum check works.

if (enum_exists($classOrInterfaceName)) {
    continue;
}

The question is why does it only cause an error in my project? Because of the odd class path Components instead of Classes?
Anyways enum support was introduced via #2702 and should not be a problem ...

@kitsunet
Copy link
Member

What, where is this failing file?

@mhsdesign
Copy link
Member Author

its an presentational enum that i placed in Neos.Demo/Components ...

i suspect this happens because the point-cut class(.*\\....) attempts to build a proxy class for every class in the system as long as that is still true: #2553 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants