@@ -83,11 +83,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
83
83
foreach ($ filePaths as $ filePath ) {
84
84
$ cnd = file_get_contents ($ filePath );
85
85
$ this ->updateFromCnd ($ output , $ session , $ cnd , $ allowUpdate );
86
- $ output ->writeln (sprintf ('Registered : <info>%s</info> ' , $ filePath ));
86
+ $ output ->writeln (sprintf ('Node type definition : <info>%s</info> ' , $ filePath ));
87
87
$ count ++;
88
88
}
89
89
90
- $ output ->writeln (sprintf ('%d node definition file (s) ' , $ count ));
90
+ $ output ->writeln (sprintf ('%d node definition(s) registered ' , $ count ));
91
91
92
92
return 0 ;
93
93
}
@@ -131,7 +131,6 @@ protected function getFilePaths($definitions)
131
131
$ filePaths = array ();
132
132
133
133
foreach ($ definitions as $ definition ) {
134
- $ definition = realpath ($ definition );
135
134
136
135
if (is_dir ($ definition )) {
137
136
$ dirHandle = opendir ($ definition );
@@ -154,7 +153,7 @@ protected function getFilePaths($definitions)
154
153
} else {
155
154
if (!file_exists ($ definition )) {
156
155
throw new \InvalidArgumentException (
157
- sprintf ("Node type definition file '<info>%s</info>' does not exist. " , $ definition )
156
+ sprintf ("Node type definition file / folder '<info>%s</info>' does not exist. " , $ definition )
158
157
);
159
158
}
160
159
0 commit comments