Commit 17e13ed5 authored by andrewmacpherson's avatar andrewmacpherson Committed by andrewmacpherson

Issue #3114943 by andrewmacpherson: Use Symfony Var-dumper instead of Kint

parent 7f3daae4
......@@ -49,10 +49,6 @@ INSTALLATION
CONFIGURATION
-------------
Currently uses Kint (from devel) directly to print out debug information
instead of devel in order to take advantage of
cli coloring and named variable debugging.
Options are:
* `--migrate-debug` - Prints out rows as they run.
......
......@@ -6,4 +6,3 @@ core: 8.x
dependencies:
- devel:devel
- drupal:migrate
- devel:kint
......@@ -32,9 +32,19 @@ class MigrationEventSubscriber implements EventSubscriberInterface {
$Source = $row->getSource();
$Destination = $row->getDestination();
// We use kint directly here since we want to support variable naming.
kint_require();
\Kint::dump($Source, $Destination);
// Uses Symfony VarDumper.
// @todo Explore advanced usage of CLI dumper class for nicer output.
// https://www.drupal.org/project/migrate_devel/issues/3151276
dump(
'---------------------------------------------------------------------',
'| $Source |',
'---------------------------------------------------------------------',
$Source,
'---------------------------------------------------------------------',
'| $Destination |',
'---------------------------------------------------------------------',
$Destination,
);
}
}
......@@ -58,9 +68,23 @@ class MigrationEventSubscriber implements EventSubscriberInterface {
$Destination = $row->getDestination();
$DestinationIDValues = $event->getDestinationIdValues();
// We use kint directly here since we want to support variable naming.
kint_require();
\Kint::dump($Source, $Destination, $DestinationIDValues);
// Uses Symfony VarDumper.
// @todo Explore advanced usage of CLI dumper class for nicer output.
// https://www.drupal.org/project/migrate_devel/issues/3151276
dump(
'---------------------------------------------------------------------',
'| $Source |',
'---------------------------------------------------------------------',
$Source,
'---------------------------------------------------------------------',
'| $Destination |',
'---------------------------------------------------------------------',
$Destination,
'---------------------------------------------------------------------',
'| $DestinationIdValues |',
'---------------------------------------------------------------------',
$DestinationIDValues,
);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment