src/Flowcode/DashboardBundle/Service/SettingService.php
public function getByKey($key)
    {
        /**
         * @var Setting $setting
         */
        $settings = $this->settingRepository->findBy(array(
            'name' => $key,
        ));
        $return = array();
        if ($settings) {
            foreach ($settings as $setting) {
                $return[] = strtolower($setting->getValue());
            }
        }
        return $return;
    }
public function getByKey($key)
    {
        /**
         * @var Setting $setting
         */
        $settings = $this->settingRepository->findBy(array(
            'name' => $key,
        ));
        $return = array();
        if ($settings) {
            foreach ($settings as $setting) {
                $return[] = strtolower($setting->getValue());
            }
        }
        return $return;
    }
Get setting value.

@param $key
@return null|string