src/Tokenization/Tokenizer.php
public function getToken(EventInterface $event): array
    {
        $object = $event->getObject();

        $statedClassName = $this->getStatedClassInstanceToken($object);
        $tokenList = [$statedClassName];

        foreach ($event->getEnabledStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':'.\strtolower($shortStateName);
        }

        foreach ($event->getIncomingStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':+'.\strtolower($shortStateName);
        }

        foreach ($event->getOutgoingStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':-'.\strtolower($shortStateName);
        }

        return $tokenList;
    }
public function getToken(EventInterface $event): array
    {
        $object = $event->getObject();

        $statedClassName = $this->getStatedClassInstanceToken($object);
        $tokenList = [$statedClassName];

        foreach ($event->getEnabledStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':'.\strtolower($shortStateName);
        }

        foreach ($event->getIncomingStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':+'.\strtolower($shortStateName);
        }

        foreach ($event->getOutgoingStates() as $stateName) {
            //Extract short class name and check if this state is not already loaded
            $shortStateName = \ltrim(\substr($stateName, (int) \strrpos($stateName, '\\')), '\\');

            $tokenList[] = $statedClassName.':-'.\strtolower($shortStateName);
        }

        return $tokenList;
    }
{@inheritdoc}