Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions src/Helper/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,26 +189,6 @@ public function setAttributes(array $attributes)
return $this;
}

/**
* Set attribs for image tag
*
* @param array $attribs
* @return Gravatar
*
* @deprecated Please use Laminas\View\Helper\Gravatar::setAttributes
*/
public function setAttribs(array $attribs)
{
trigger_error(sprintf(
'%s is deprecated; please use %s::setAttributes',
__METHOD__,
__CLASS__
), E_USER_DEPRECATED);

$this->setAttributes($attribs);
return $this;
}

/**
* Get attributes of image
*
Expand All @@ -224,29 +204,6 @@ public function getAttributes()
return $this->attributes;
}

/**
* Get attribs of image
*
* Warning!
* If you set src attrib, you get it, but this value will be overwritten in
* protected method setSrcAttribForImg(). And finally your get other src
* value!
*
* @return array
*
* @deprecated Please use Laminas\View\Helper\Gravatar::getAttributes
*/
public function getAttribs()
{
trigger_error(sprintf(
'%s is deprecated; please use %s::getAttributes',
__METHOD__,
__CLASS__
), E_USER_DEPRECATED);

return $this->getAttributes();
}

/**
* Set default img
*
Expand Down
28 changes: 0 additions & 28 deletions src/Helper/Placeholder/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,34 +36,6 @@ class Registry
*/
protected $items = [];

/**
* Retrieve or create registry instance
*
* @return Registry
*/
public static function getRegistry()
{
trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED);
if (null === static::$instance) {
static::$instance = new static();
}

return static::$instance;
}

/**
* Unset the singleton
*
* Primarily useful for testing purposes; sets {@link $instance} to null.
*
* @return void
*/
public static function unsetRegistry()
{
trigger_error('Placeholder view helpers should no longer use a singleton registry', E_USER_DEPRECATED);
static::$instance = null;
}

/**
* Set the container for an item in the registry
*
Expand Down