You are here

protected function NamespacedAttributeBag::resolveKey in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php \Symfony\Component\HttpFoundation\Session\Attribute\NamespacedAttributeBag::resolveKey()

Resolves the key from the name.

This is the last part in a dot separated string.

Parameters

string $name:

Return value

string

4 calls to NamespacedAttributeBag::resolveKey()
NamespacedAttributeBag::get in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Returns an attribute.
NamespacedAttributeBag::has in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Checks if an attribute is defined.
NamespacedAttributeBag::remove in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Removes an attribute.
NamespacedAttributeBag::set in vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php
Sets an attribute.

File

vendor/symfony/http-foundation/Session/Attribute/NamespacedAttributeBag.php, line 152

Class

NamespacedAttributeBag
This class provides structured storage of session attributes using a name spacing character in the key.

Namespace

Symfony\Component\HttpFoundation\Session\Attribute

Code

protected function resolveKey($name) {
  if (false !== ($pos = strrpos($name, $this->namespaceCharacter))) {
    $name = substr($name, $pos + 1);
  }
  return $name;
}