コード例 #1
0
 /**
  * Create Sass source instance associated with regular file
  *
  * @param $context SassSourceContext Context
  * @param $fileName string File path
  */
 public function __construct(Context $context, $fileName)
 {
     if (!is_file($fileName)) {
         throw new \Wikia\Sass\Exception(__METHOD__ . ': File is not a regular file: ' . $fileName);
     }
     parent::__construct($context);
     $this->fileName = realpath($fileName);
     $this->currentDir = dirname($this->fileName);
     $this->humanName = $this->fileName;
 }