📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 18:16:34
📂
/ (Root)
/
home
/
apkbfjox
/
shamapk.com
/
wp-content
/
plugins
/
wp-rocket
/
inc
/
Dependencies
/
League
/
Container
/
Inflector
📍 /home/apkbfjox/shamapk.com/wp-content/plugins/wp-rocket/inc/Dependencies/League/Container/Inflector
🔄 Refresh
✏️
Editing: InflectorAggregate.php
Writable
<?php declare(strict_types=1); namespace WP_Rocket\Dependencies\League\Container\Inflector; use Generator; use WP_Rocket\Dependencies\League\Container\ContainerAwareTrait; class InflectorAggregate implements InflectorAggregateInterface { use ContainerAwareTrait; /** * @var Inflector[] */ protected $inflectors = []; /** * {@inheritdoc} */ public function add(string $type, callable $callback = null) : Inflector { $inflector = new Inflector($type, $callback); $this->inflectors[] = $inflector; return $inflector; } /** * {@inheritdoc} */ public function getIterator() : Generator { $count = count($this->inflectors); for ($i = 0; $i < $count; $i++) { yield $this->inflectors[$i]; } } /** * {@inheritdoc} */ public function inflect($object) { foreach ($this->getIterator() as $inflector) { $type = $inflector->getType(); if (! $object instanceof $type) { continue; } $inflector->setLeagueContainer($this->getLeagueContainer()); $inflector->inflect($object); } return $object; } }
💾 Save Changes
❌ Cancel