public function getConponentConfigByName($name)
    {
        $file = route()->com.$name.'/component.json';
        if (file_exists($file)) {
            $fileHandling = new FileHandling();
            $c = $fileHandling->open($file, 'readOnly')->read();

            return json_decode($c, true);
        }

        return false;
    }
public function getConponentConfigByName($name)
    {
        $file = route()->com.$name.'/component.json';
        if (file_exists($file)) {
            $fileHandling = new FileHandling();
            $c = $fileHandling->open($file, 'readOnly')->read();

            return json_decode($c, true);
        }

        return false;
    }
public function getConponentConfigByName ( $ name ) { $ file = route ( ) -> com . $ name . '/component.json' ; if ( file_exists ( $ file ) ) { $ fileHandling = new FileHandling ( ) ; $ c = $ fileHandling -> open ( $ file , 'readOnly' ) -> read ( ) ; return json_decode ( $ c , true ) ; } return false ; }
Get the component json file configuration.

@param (string) $name Name of component.

@since 3.0.0

@return bool
Get the component json file configuration .