Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • Dumper
  • Escaper
  • Inline
  • Parser
  • Unescaper
  • Yaml
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class Inline

Inline implements a YAML parser/dumper for the YAML inline syntax.

Namespace: Symfony\Component\Yaml
Author: Fabien Potencier <fabien@symfony.com>
Located at yaml/Symfony/Component/Yaml/Inline.php
Methods summary
public static array
# parse( string $value, Boolean $exceptionOnInvalidType = false, Boolean $objectSupport = false )

Converts a YAML string to a PHP array.

Converts a YAML string to a PHP array.

Parameters

$value
string
$value A YAML string
$exceptionOnInvalidType
Boolean
$exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
Boolean
$objectSupport true if object support is enabled, false otherwise

Returns

array
A PHP array representing the YAML string

Throws

Symfony\Component\Yaml\Exception\ParseException
public static string
# dump( mixed $value, Boolean $exceptionOnInvalidType = false, Boolean $objectSupport = false )

Dumps a given PHP variable to a YAML string.

Dumps a given PHP variable to a YAML string.

Parameters

$value
mixed
$value The PHP variable to convert
$exceptionOnInvalidType
Boolean
$exceptionOnInvalidType true if an exception must be thrown on invalid types (a PHP resource or object), false otherwise
$objectSupport
Boolean
$objectSupport true if object support is enabled, false otherwise

Returns

string
The YAML string representing the PHP array

Throws

Symfony\Component\Yaml\Exception\DumpException
When trying to dump PHP resource
public static string
# parseScalar( scalar $scalar, string $delimiters = null, array $stringDelimiters = array('"', "'"), integer & $i = 0, Boolean $evaluate = true )

Parses a scalar to a YAML string.

Parses a scalar to a YAML string.

Parameters

$scalar
scalar
$scalar
$delimiters
string
$delimiters
$stringDelimiters
array
$stringDelimiters
$i
integer
&$i
$evaluate
Boolean
$evaluate

Returns

string
A YAML string

Throws

Symfony\Component\Yaml\Exception\ParseException
When malformed inline YAML string is parsed
Constants summary
string REGEX_QUOTED_STRING '(?:"([^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'([^\']*(?:\'\'[^\']*)*)\')'
#
php-coveralls API documentation generated by ApiGen 2.8.0