Skip to content

Commit

Permalink
backwards-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored Oct 14, 2018
1 parent c1e1d13 commit 4f7152f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Pho/Framework/Loaders/OutgoingEdgeLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public static function pack(Framework\ParticleInterface $particle): AbstractLoad
{
$obj = new OutgoingEdgeLoader($particle->getRegisteredOutgoingEdges());
foreach ($obj->cargo->classes as $class) {
$class = str_replace("ObjectOut", "ObjOut", $class); // for backwards-compatibility.
$cargo = &$obj->cargo;
$reflector = new \ReflectionClass($class);
if(!$reflector->isSubclassOf(Framework\AbstractEdge::class)) {
Expand Down

0 comments on commit 4f7152f

Please sign in to comment.